android getlastknownlocation always null in emulator

后端 未结 3 1220
温柔的废话
温柔的废话 2021-01-06 19:24

It seems a common issue, but i really can\'t understand why is it happening even though i read ton of simialr issues.

I am playing with a basic location class on a e

3条回答
  •  轮回少年
    2021-01-06 20:11

    There is another option, to create your own provider using locationManager.addTestProvider(); so you can make your own tests.

提交回复
热议问题