Code example for Fragment

Methods: onResume

0
		getLoaderManager().initLoader(0, null, this);
	} 
	 
	@Override 
	public void onResume(){ 
		super.onResume(); 
		//getLoaderManager().restartLoader(0, null, this); 
	} 
	@Override 
	public void onPause(){ 
		super.onPause(); 
	} 
 
	public static TrendFragment newInstance() { 
		return new TrendFragment(); 
	} 
 
	public void refresh() { 
		getLoaderManager().restartLoader(0, null, this);
	}