如何获取当前位置的经度和纬度?

时间:2015-10-14 13:31:03

标签: android request location latitude-longitude

我们使用SDK版本22作为目标,但已将SDK 17设置为最低限度。为了获得当前位置以及editText中显示的坐标,我们使用了以下代码:

enter image description here

我们的问题与requestLocationUpdates方法有关,因为它要求我们在图像上显示4个参数。

这是我们的构建gradle: enter image description here

在我们投射它们之后,代码中没有错误,但在运行我们的应用程序后,我们收到以下消息:应用程序已停止!

这是我们的Android清单: enter image description here

0 个答案:

没有答案