Note that there are some explanatory texts on larger screens.

plurals
  1. POWhen i press Back button, i found blank activity in android
    primarykey
    data
    text
    <p>In my first view, where i have 4 icons like facebook, twitter etc. When i press on one of them, it takes me to the related site. But when i press back button, it first shows me one blank activity and then again i have to press back button to reach my first activity.</p> <p>Any Help? Thanks in Advance</p> <pre><code> public void onClick(View v) { // TODO Auto-generated method stub switch(v.getId()) { case R.id.button1: web_bundle=new Bundle(); web_bundle.putInt("icon_position", 1); web_intent=new Intent(Recipe.this,WebViewActivity.class); web_intent.putExtras(web_bundle); startActivity(web_intent); break; case R.id.button2: web_bundle=new Bundle(); web_bundle.putInt("icon_position", 2); web_intent=new Intent(Recipe.this,WebViewActivity.class); web_intent.putExtras(web_bundle); startActivity(web_intent); break; case R.id.button3: web_bundle=new Bundle(); web_bundle.putInt("icon_position", 3); web_intent=new Intent(Recipe.this,WebViewActivity.class); web_intent.putExtras(web_bundle); startActivity(web_intent); break; case R.id.button4: web_bundle=new Bundle(); web_bundle.putInt("icon_position", 4); web_intent=new Intent(Recipe.this,WebViewActivity.class); web_intent.putExtras(web_bundle); startActivity(web_intent); break; } } protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.webview); webview=(WebView)findViewById(R.id.webView1); webview.getSettings().setJavaScriptEnabled(true); Intent get_icon=getIntent(); Bundle get_bundle=get_icon.getExtras(); int icon_id=get_bundle.getInt("icon_position"); if(icon_id==1){ webview.loadUrl("http://www.facebook.com"); } if(icon_id==2){ webview.loadUrl("http://www.twitter.com"); } if(icon_id==3){ webview.loadUrl("http://www.plus.google.com"); } if(icon_id==4){ webview.loadUrl("http://www.blogger.com"); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload