[Solved] why location manager is null [closed]
There is no reason to explicitly set myLocationManager to null in the class public class GeoWebOne extends Activity { private static String PROVIDER=LocationManager.GPS_PROVIDER; private WebView browser; private LocationManager myLocationManager; Would have worked just as well; and is probably slightly easier to read. solved why location manager is null [closed]