Code example for Fragment

Methods: onDetach

0
		return myView;
	} 
	 
	@Override 
	public void onDetach() { 
		super.onDetach(); 
		 
		//detachLocationListener(); 
	} 
	 
	/** Called when the activity is first created. */ 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
	} 
 
	@Override 
	public void onAttach(Activity activity) {
		super.onAttach(activity);