Code example for Location

Methods: toString

0
	public void onLocationChanged(Location location) {
		addLocationToDB(location);
	} 
 
	private void addLocationToDB(Location location) {
		Log.i(TAG, "Location changed: " + location.toString());
		dbAdapter.addLocation(location);
		Intent intent = new Intent("com.shinetech.android.UPDATE_UI");
		sendBroadcast(intent);
		Log.i(TAG, "UPDATE_UI intent broadcasted");
	} 
 
	public void onProviderEnabled(String provider) {
		Log.i(TAG, "Provider " + provider + " is now enabled.");
	} 
 
	public void onProviderDisabled(String provider) {
		Log.i(TAG, "Provider " + provider + " is now disabled.");
	} 
 
	public void onStatusChanged(String provider, int i, Bundle b) {