Android - How to get current location (latitude and longitude)?

后端 未结 4 1291
粉色の甜心
粉色の甜心 2020-12-05 05:33

I am using the following code to get the current location namely (latitude and longitude), but I am not getting current location (latitude and longitude).

Anyone kno

4条回答
  •  隐瞒了意图╮
    2020-12-05 06:09

    You are not using the correct permission. The correct one is:

    By the way, your demand can only be fulfilled by:

    So there is no need for ACCESS_COARSE_LOCATION

提交回复
热议问题