Code example for Loader

Methods: getId

0
	@Override 
	public final void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
		if (getActivity() == null) {
			return; 
		} 
		if (loader.getId() == mQueryToken) {
			onQueryComplete(cursor);
		} 
	} 
 
	@Override 
	public final void onLoaderReset(Loader<Cursor> arg0) {
	} 
 
	 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setHasOptionsMenu(true);
		final Intent intent = BaseActivity
				.fragmentArgumentsToIntent(getArguments());