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 6708017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:42:30+00:00 2026-05-26T07:42:30+00:00

Hi i am having a activity with a button, on click of the button

  • 0

Hi i am having a activity with a button, on click of the button it has to load a custom browser in a new activity not the default browser of android. and i need a way to exclude the history of the browser such that on back press it comes back to the previous activity without navigating to previous website. I am new to android and any ways to do this

  • 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-05-26T07:42:31+00:00Added an answer on May 26, 2026 at 7:42 am

    You are probably just talking about the WebView

    Link to the official tutorial

    Note :

    This onKeyDown(int, KeyEvent) callback method will be called anytime a
    button is pressed while in the Activity. The condition inside uses the
    KeyEvent to check whether the key pressed is the BACK button and
    whether the WebView is actually capable of navigating back (if it has
    a history). If both are true, then the goBack() method is called,
    which will navigate back one step in the WebView history.Returning
    true indicates that the event has been handled. If this condition is
    not met, then the event is sent back to the system.

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

Sidebar

Related Questions

My application has a button when clicked it is disabled, an activity indicator displayed
I have a problem with back button functionality in an Activity of Android. The
hi i am doing one app here.user click button once means in another activity
My application is having two activities. In first activity, I have one button and
I have a activity (ListActivity) in which if a user click on a button,
I'm having two layout.xml files. I need to load either one of the XML
I'm having a strange problem with Android 1.6 I have an application that has
Just started checking out android development, but having problems already. The activity shuts down
I'm creating a ListView with buttons and having some issues. My activity need to
I am having trouble getting my activity to generate a MotionEvent.ACTION_UP. Probably a beginner's

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.