Code example for FragmentActivity

Methods: onPause, unregisterReceiver

0
		registerReceiver(receiver, filter);
	} 
 
	@Override 
	public void onPause() { 
		super.onPause(); 
		unregisterReceiver(receiver);
 
	} 
 
	class EliGBroadcast extends BroadcastReceiver {
 
		@Override 
		public void onReceive(Context context, Intent intent) {
			if (intent.getAction().equals(EliGActions.TWITTER_LIST_ACTION)) {
				TwitterListFragment twitterListFragment = (TwitterListFragment) getSupportFragmentManager()
						.findFragmentByTag("twitterList"); 
				if (twitterListFragment != null)
					twitterListFragment.refresh();
 
				setProgressBarIndeterminateVisibility(Boolean.FALSE);