onLocationChanged not called on some devices

后端 未结 7 1505
悲哀的现实
悲哀的现实 2020-12-30 01:38

This is a question which has been asked numerous times but I could not find a solution that always works.

I am developing an application using the Fused location pro

7条回答
  •  再見小時候
    2020-12-30 02:12

    This maybe non-sense but I have faced this problem before, someone suggested that you should create your own LocationListener instead of letting your MainActivity implements LocationListener. Basically this:

    locationclient.requestLocationUpdates(lr, your_location_listener);
    

    Hope this helps.

提交回复
热议问题