Code example for LocationManager

Methods: isProviderEnabled

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