OnLocationChanged callback is never called

前端 未结 14 1420
星月不相逢
星月不相逢 2020-12-01 03:28

I am trying to get the users current location using the LocationManager. I have done a lot of research and can\'t seem to find anyone with the same problem. T

14条回答
  •  一向
    一向 (楼主)
    2020-12-01 03:48

    As Phan Van Linh answered , it's probably because you are inside a building. There are explanation here on how to mock GPS for the emulator. Also, there is this app that mocks GPS data.

提交回复
热议问题