Code example for AsyncTaskLoader

Methods: onCanceled

0
     } 
	 
	@Override 
	public void onCanceled(Cursor _data) 
	{ 
		super.onCanceled(_data);
		 
		// Close the cursor if it's opened 
		if ((mCursor != null)&&(!mCursor.isClosed()))
		{ 
			mCursor.close();
			mCursor = null;
		} 
	} 
 
	private class DatabaseReceiver extends BroadcastReceiver
	{ 
		public DatabaseReceiver() 
		{ 
			// We need to register the receiver to filter one or more intents