Code example for ListFragment

Methods: onStart

0
 
	} 
 
	@Override 
	public void onStart() { 
		super.onStart(); 
		onPostStart(); 
	} 
 
	@Override 
	public void onStop() { 
		mActivityFirstCreated = false;
		super.onStop(); 
	} 
 
	public void registerReceiver(final BroadcastReceiver receiver, final IntentFilter filter) {
		final Activity activity = getActivity();
		if (activity == null) return;
		activity.registerReceiver(receiver, filter);
	}