Code example for ListFragment

Methods: getLoaderManager, onResume

0
		getLoaderManager().initLoader(0, null, this);
	} 
	 
	@Override 
	public void onResume(){ 
		super.onResume(); 
		getLoaderManager().restartLoader(0, null, this);
	} 
 
	@Override 
	public Loader<Cursor> onCreateLoader(int id, Bundle args) {
		return new CursorLoader(getActivity(),
				EliGContentProvider.TWEET_USER_CONTENT_URI, null, EliGDatabase.TWEET_USER_NAME_COL+"=?", new String[]{username}, EliGDatabase.TWEET_CREATED_AT_COL + " DESC");
	} 
 
	@Override 
	public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
		adapter.swapCursor(data);
		if(data.getCount()==0){//no data called the ServiceHelper
			Bundle bundle=new Bundle();
			bundle.putString(Clov3rConstant.TWITTER_USERNAME_EXTRA, username);