Code example for AsyncTaskLoader

Methods: onStartLoading

0
mDatabaseReceiver = new DatabaseReceiver();
		} 
		 
		forceLoad();
		super.onStartLoading(); 
	} 
 
	// This method will be executed in a new thread 
	// Here we perform the data loading operations 
	@Override 
	public Cursor loadInBackground() 
	{	 
		// We only close the cursor in this method, and expect that the 
		// class who inherits that one implements the query 
		if ((mCursor != null)&&(!mCursor.isClosed()))
		{ 
			mCursor.close();
			mCursor = null;
		}