How to get last known location for Location manager in Android?

后端 未结 7 1451
-上瘾入骨i
-上瘾入骨i 2021-01-11 10:34

I am using simple location manager object to get lastKnownLocation() of device but getting null object in

7条回答
  •  我在风中等你
    2021-01-11 10:50

    Silly thing as answer to this ...I restarted my device ...and it worked...Please ensure that your service for location are enabled and working properly

提交回复
热议问题