Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8757039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:12:37+00:00 2026-06-13T14:12:37+00:00

In my first view, where i have 4 icons like facebook, twitter etc. When

  • 0

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.

Any Help?
Thanks in Advance

    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");
    }

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:12:38+00:00Added an answer on June 13, 2026 at 2:12 pm

    As i face this same problem as per my knowledge When you first time press back button it first stops loading that URL or we can say that facebook site. Then again press back button it gets you back to your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have added one view controller to my first view controller as aa subview
I have a grouped table view in my application with two sections.First one consist
I have application where i have two view controllers my first view and second
I have 2 views (first view - custom user control, MainWindow view - main
I have two views.In first view, I have a table view and I am
I have this code: tableList = [[NSMutableArray alloc] initWithObjects:@First View,@Second View,nil]; I have synthesized
I have a UIViewController and I'm navigating from my first view controller to second
I try to explain my problem. I have a first view in which I
I have a first table view and a segue that pushes to another table
I have this view (DetailsContainer, first class in code section of this question) with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.