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

  • Home
  • SEARCH
  • 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 6558805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:14:42+00:00 2026-05-25T13:14:42+00:00

I have an app.It starts with activity A. Then we can go to activity

  • 0

I have an app.It starts with activity A. Then we can go to activity B. When I minimize app and start the app from resent application, there is no problem (Activity B comes up). But when i minimize app and start app from menu (clicking on app icon), it starts from launch activity (Activity A), like app restarts.How can i prevent that..Pls help

  • 1 1 Answer
  • 1 View
  • 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-25T13:14:42+00:00Added an answer on May 25, 2026 at 1:14 pm

    Well there is no ‘android’ general solution for this. You can mark it with some flags and prevent this , at least I do not know any flags. But the thing you can do is in your main (first) activity check some variable in shared preferences and start the activity B by your own.

    you can save this needToGoToB in the shared preferences, for example when you enter in activity B you can set to be true.

    if(needToGoToB){
    startActivity(new Intent(this,B.class));
    finish();
    else{
    //just normal flow
    }

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

Sidebar

Related Questions

In my app have a sign in activity. If login is successful, I start
I have created an application.in the app i start a countdown timer and save
I have four activities, A, B, C and D. app starts with activity A,
I have an Android app with 2 primary activities. When the app starts from
In my android app, I have two activities mainactivity and erroractivity main activity starts
I have a simple application, it starts, loads xml feed from the net, you
I'm trying to implement in app-billing in my application, but I have a little
I have a simple problem. In my app I have 3 activities A,B,C. Activity
I have PhoneGap app running in Android. When the app starts, it inserts approximately
I have an app that starts out in the login screen and when you

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.