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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:47:27+00:00 2026-06-14T00:47:27+00:00

In my application I have three activities A, B and C. Activity A is

  • 0

In my application I have three activities A, B and C. Activity A is starting activity B with a specific requestCode (and waiting for a returned result) and activity B is starting activity C. In the manifest, C is set to not store it’s history on the stack, so when users continue, they are sent to activity B. Now at this point the back stack looks like ABB from bottom to top. The bottom most B was started with the correct requestCode but the top most B was not started with any requestCode. Now my question is, how can I make it so that the bottom most B is “resumed” rather than that top most B being created? Also, I’ve tried to use the “singleTask” and “singleTop” attributes for the B activity in my manifest and while it did use the same instance of the activity already on the stack, it seems the requestCode was no longer the same as if activity A had started.

  • 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-14T00:47:30+00:00Added an answer on June 14, 2026 at 12:47 am

    actually I was reading about the different flags used to start activities and found the FLAG_ACTIVITY_REORDER_TO_FRONT flag. This accomplishes exactly what I wanted, it resumes an activity already on the stack without creating another instance, and doesn’t issue or change any existing requestCodes.

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

Sidebar

Related Questions

I have three activities in my android app. First activity is main application screen
In my application, I have three collection objects which store data. The data which
I have an application which is using a set of three combo boxes. I
I have an android application with many activities. I render next activity from the
I have three activities A->B->C.when i am in B activity i click the home
I have an application that have three activities, lets call they A, B and
I have three activities 1 is the main activity 2 is some other activity
I have three activities in my application ... I use an intent to navigate
My application has three activities say A -> B-> C . Activity A is
I have There Activities(A,B,C) within my Application.When i start the Application Activity A: A:onCreate()

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.