Code example for FragmentActivity

Methods: onPause, unregisterReceiver

0
		registerReciever(); 
		onNewIntent(getIntent()); 
	} 
 
	private void unregisterReceiver() { 
		unregisterReceiver(receiver);
	} 
 
	private void registerReciever() { 
		IntentFilter filter = new IntentFilter(
				DownloadsService.ACTION_DOWNLOAD_COMPLETE); 
		registerReceiver(receiver, filter);
 
	} 
 
	@Override 
	protected void onPause() { 
		super.onPause(); 
		unregisterReceiver(); 
	} 
 
	@Override 
	protected void onResume() {