GPS isProviderEnabled always return false

后端 未结 6 1238
梦谈多话
梦谈多话 2021-01-11 11:16

I\'ve got this code

 lm = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
 boolean isGPS = lm.isProviderEnabled (LocationManager.GPS_PROVI         


        
6条回答
  •  温柔的废话
    2021-01-11 11:59

    To fix GPS isProviderEnabled Always returns false on Android 6, add this to your manifest:

    
    

    Titanium cannot find GPS hardware on android 5.0 & above, thus it keeps returning false. add above line to fix issue.

提交回复
热议问题