Code example for Loader

Methods: forceLoad

0
				return; 
			} 
 
			Loader<Cursor> loader = getLoaderManager().getLoader(mHandlerQueryToken); 
			if (loader != null) { 
				loader.forceLoad(); 
			} 
		} 
	}; 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setHasOptionsMenu(true);
	} 
 
	@Override 
	public void onAttach(Activity activity) {
		super.onAttach(activity);
		if (!(activity instanceof Callbacks)) {
			throw new ClassCastException("Activity must implement fragment's callbacks.");