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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:58:27+00:00 2026-05-18T10:58:27+00:00

I have read about activities, stacks and launch modes , but have a hard

  • 0

I have read about activities, stacks and launch modes, but have a hard time understanding how to apply this info to my specific problem.

Basically what I want to do is to launch a new activity, and make sure that it takes the parent’s place in the stack, rather than being placed on top of it in the stack. I have the following two scenarios:

  1. I have a login-activity. When the user logs in, a new activity is launched. When the user hits “back”, I don’t want him to be sent back to the login-activity, but rather to exit the program.

  2. I have an activity that is displayed in a tabhost (or rather in a framelayout inside a tabhost, I suppose). This activity has a button, an clicking on this launches a new activity. I would like this new activity to take the parents place. That is, i don’t want to open a new full-screen activity, but instead I want it to take the parent’s place inside the framelayout in the tabhost. Also, I don’t want a press on the back-key to lead the user back to the parent activity.

I would appreciate it if anyone could point me in the right direction. Thanks in advance.

  • 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-18T10:58:28+00:00Added an answer on May 18, 2026 at 10:58 am
    1. All you need to do is call finish() in your Login Activity. That will remove it from the Activity Stack.

    2. This is a more difficult answer. My best suggestion here would be to either use a ViewFlipper and instead of starting a new Activity you can just manage switching the views out. Alternately, if you need the button to start a new Activity, you could use an ActivityGroup and manage the Activitys that way. They both have their own complexities, so you’ll need to investigate which may work better for you.

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

Sidebar

Related Questions

I have read this post about how to test private methods. I usually do
I just started to read about this new technology... Does someone have some knowledge
I have read about partial methods in the latest C# language specification , so
I am using VS2008 to develop a WinForms 2.0 application. I have read about
I have read several documentations about building custom ErrorHandler (by inheriting from IErrorHandler). Unfortunately,
I have read the post here about using setTimeout() during intensive DOM processing (using
I have read lots of information about page caching and partial page caching in
I just got Delphi 2009 and have previously read some articles about modifications that
I'm quite confused about several books in .NET that I have read. Would someone
I have been using the Zend Framework with an MVC configuration, read about Ruby

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.