Code example for LocationManager

Methods: isProviderEnabled

0
		return result;
	} 
 
	private boolean isLocationProviderEnabled(String provider) {
		LocationManager locationManager = (LocationManager) ctx.getSystemService(Context.LOCATION_SERVICE);
		return locationManager.isProviderEnabled(provider);
	} 
 
	/** 
	 * Check device settings for Wi-Fi. 
	 *  
	 * @returns {boolean} The status of Wi-Fi in device settings. 
	 */ 
	public boolean isWifiEnabled() { 
		WifiManager wifiManager = (WifiManager) ctx.getSystemService(Context.WIFI_SERVICE);
		boolean result = wifiManager.isWifiEnabled();
		Log.d(LOG_TAG, "Wifi enabled: " + result);
		return result;
	} 
	 
	/**