Code example for FragmentActivity

Methods: onDestroy, unregisterReceiver

0
 
 
	@Override 
	protected void onDestroy() {	 
		 
		super.onDestroy(); 
		Log.i("SmitBrowser","---onDestory()");
		unregisterReceiver(receiver);
	} 
 
 
	private void setupviews() {		 
		 
		mCustomViewContainer = (FrameLayout)findViewById(R.id.fullscreen_custom_content);
		adFragment = (AdFragment)getSupportFragmentManager().findFragmentById(R.id.fragment_advertisement);
		mNeedHideView = findViewById(R.id.containerBody);	
		 
		webviewFragment = new SmitHtml5Fragment();
		webviewFragment.setCustomViewContainer(mCustomViewContainer);
		webviewFragment.setViewNeedHide(mNeedHideView);
		webviewFragment.setMyOnKeyListener(this);