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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:52:44+00:00 2026-06-03T13:52:44+00:00

I have an application with 4 or 5 activities! Let’s say A, B, C,

  • 0

I have an application with 4 or 5 activities! Let’s say A, B, C, D and E.

It is more or less possible to jump from every activity to every other activity!

Lets say a user goes A -> B -> E -> D.

Now he wants to open B (again). I now want my application to recognise, that there already is one active B somewhere in the activity stack and reactivate it (or at least finish the old B and create a new one).

I dont want to finish all activities when creating new ones, because it is likely that the user often uses the backbutton.

possible solutions would be: create a activity stack yourself and process it in bundles or to use some static structures.

But there has to be a much simpler/nicer way, is there??

Thanks for your help!

  • 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-03T13:52:45+00:00Added an answer on June 3, 2026 at 1:52 pm

    You can use singleInstance value or singleTask value in launch mode tag in your manifest.

    android:launchMode=["multiple" | "singleTop" |"singleTask" | "singleInstance"]

    According to android developers fundamentals

    The singleTask and singleInstance modes also differ from each other only in one respect:

    A singleTask activity allows other activities to be part of its task. It’s always at the root of its task, but other activities (necessarily standard and singleTop activities) can be launched into that task.

    A singleInstance activity, on the other hand, permits no other activities to be part of its task. It’s the only activity in the task. If it starts another activity, that activity is assigned to a different task — as if FLAG_ACTIVITY_NEW_TASK was in the intent.

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

Sidebar

Related Questions

I have an android application with many activities. I render next activity from the
Let's say I have 4 activities in my app: A (main activity) B C
I have a series of activities in my application which starts with Activity A
I have an application which has two Activities, let's call them A and B.
I have an application that contains 3 activities A, B and C. The activity
I am writing a application where I am dealing with 4 activities, let's say
I have an application which consists of two activities/screens and a java class from
I have an application that have three activities, lets call they A, B and
Hi i'm facing this problem. I have an application with 2 activities: -Activity A
I have 5 activities (let's say A,B,C,D and E ). Activities A to D

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.