Code example for LocationManager

Methods: isProviderEnabled

0
	} 
	 
	public boolean isNetworkLocationServiceActive() { 
		boolean network_enabled = false;
		try { 
			network_enabled = androidLocationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
		} catch (Exception ex) {
		} 
		return network_enabled;
	} 
 
	public boolean locationServicesEnabled() { 
		return (isGpsLocationServiceActive() || isNetworkLocationServiceActive()); 
 
	} 
 
}