Android get location is null after phone reboot
问题 In my app im getting the phone's location via this function, but when I restart the phone and start the app I get null from this method. Is there something that im missing or doing wrong? What should I do to fix this issue? Here is the function im using: public void getAddress() { Log.v("--", "get address 1"); boolean isGPSProviderEnabled = locationManager .isProviderEnabled(LocationManager.GPS_PROVIDER); boolean network_enabled = locationManager .isProviderEnabled(LocationManager.NETWORK