Code example for FragmentActivity

Methods: onNewIntent

0
 
    
	@Override 
	protected void onNewIntent(Intent intent) {
		// TODO Auto-generated method stub 
		super.onNewIntent(intent);
		Log.i("SmitBrowser","---onNewIntent()");
		String url = intent.getStringExtra(OPEN_URL);
		if(url != null){
			webviewFragment.loadHtml(url);
		}else{ 
			webviewFragment.loadHtml("file:///android_asset/game.html");
		} 
	} 
 
 
 
	@Override 
	protected void onDestroy() {	 
		 
		super.onDestroy();