Code example for Loader

Methods: forceLoad

0
 
	public void loadMoreResults() { 
		if (isAdded()) {
			Loader loader = getLoaderManager().getLoader(STREAM_LOADER_ID);
			if (loader != null) {
				loader.forceLoad();
			} 
		} 
	} 
 
	@Override 
	public void onListItemClick(ListView l, View v, int position, long id) {
	} 
 
	@Override 
	public void onScrollStateChanged(AbsListView listView, int scrollState) {
		// Pause disk cache access to ensure smoother scrolling 
		if (scrollState == AbsListView.OnScrollListener.SCROLL_STATE_FLING) {
			// mImageLoader.stopProcessingQueue(); 
		} else { 
			// mImageLoader.startProcessingQueue();