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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:48:47+00:00 2026-06-04T18:48:47+00:00

I am developing a one chat application. in which first screen has one button

  • 0

I am developing a one chat application. in which first screen has one button for continue and it redirects to home/main screen of window.In main screen i have five different tabs.

My main problem is that when i am on main screen and if i press back button,it redirects to home screen of device.but if clicked on launcher icon again application doesn’t start from last state rather it starts from first screen.

If i press home button within any tab/screen then its working fine.clicking on launcher icon it redirects me to the last state/screen.

I want the same behaviour of home button on back button.

And i have noticed one thing this happens only on activity which has tab. on other activities even pressing a back button .application doesn’t minimizes.

any solution for 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-06-04T18:48:49+00:00Added an answer on June 4, 2026 at 6:48 pm

    use

    public void onBackPressed() {
    
            Intent intent = new Intent(Intent.ACTION_MAIN);
            intent.addCategory(Intent.CATEGORY_HOME);
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            startActivity(intent);
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a Cocoa application which involves a chat element. One approach I've
I am developing a chat application. And i want to have pop up window
I am developing one application which need the following functionalities I have webserver. I
I am developing one chat application and i want to create a chat screen
I am developing a XMPP based chat application for iOS. One of the features
I am developing one application which include the email sending functionality (which is like
I am developing one application in android. In this I have to login into
i m developing one joomla site,, i have assign one article to home page.
I am developing one chat application on c#,and on that we use system.timer.timer for
I'm developing one android application in which I'm using one customized ListView which extends

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.