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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:15:56+00:00 2026-05-16T00:15:56+00:00

Support App starts activity A, then A starts activity B and finishes itself. After

  • 0

Support App starts activity A, then A starts activity B and finishes itself. After that activity B starts activity C.

Now the stack contains B and C, with C at the top.

Then I click a button in activity C, and want it to clear B and C and start activity A, i.e. I want activity A to be the only activity in the stack. How can I make it?

Edit: I made a test to use FLAG_ACTIVITY_CLEAR_TOP. But it didn’t work in my case, because activity A is not running when button in activity C is clicked.

  • 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-16T00:15:57+00:00Added an answer on May 16, 2026 at 12:15 am

    Set the FLAG_ACTIVITY_CLEAR_TOP flag on your intent to start activity A.

    Edit: Is there a reason you can’t leave A going? Then you could do as suggested.

    Otherwise, another (more complicated) option:

    In B start C forResult. When A is started from C, you could finish C with a result indicating to B to also exit.

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

Sidebar

Related Questions

Google App Engine doesn't support SSL for custom domains. Does this mean that it's
i'm writing an app that needs a calculation support (Fun project). However, is there
I'm building a web app that's going to support multiple languages. For the moment,
I have a simple little osx app that just starts up an IKPictureTaker and
I have an xml layout for a Fragment (android.support.v4.app.Fragment). When this Fragment is added
This is my FragmentListArraySupport.java package com.test.methods; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.support.v4.app.ListFragment; import android.util.Log;
An iPad app can support inclusion of launch images in both orientations; presumably, if
I'm trying to add JPA support for my app however, I'm getting this error:
I'm trying to add Jumplist support to my app, but I can only find
My app has to support landscape/portrait mode only for tablets, phones will only support

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.