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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:03:44+00:00 2026-05-22T17:03:44+00:00

How can I have my Android app resume where it last was, i.e. the

  • 0

How can I have my Android app resume where it last was, i.e. the Activity in view, etc.? If I am showing an Activity and press the Home button and then launch my app again it returns to the startup activity. I’d like it to work like an iPhone app where it suspends in place and resumes back to where the user last was.

Thank you.

  • 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-22T17:03:44+00:00Added an answer on May 22, 2026 at 5:03 pm

    You may need to set android:alwaysRetainTaskState=”true” for your root activity in the manifest. From the documentation:

    Whether or not the state of the task
    that the activity is in will always be
    maintained by the system — “true” if
    it will be, and “false” if the system
    is allowed to reset the task to its
    initial state in certain situations.
    The default value is “false”. This
    attribute is meaningful only for the
    root activity of a task; it’s ignored
    for all other activities.

    Normally,
    the system clears a task (removes all
    activities from the stack above the
    root activity) in certain situations
    when the user re-selects that task
    from the home screen. Typically, this
    is done if the user hasn’t visited the
    task for a certain amount of time,
    such as 30 minutes.

    However, when this
    attribute is “true”, users will always
    return to the task in its last state,
    regardless of how they get there. This
    is useful, for example, in an
    application like the web browser where
    there is a lot of state (such as
    multiple open tabs) that users would
    not like to lose.

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

Sidebar

Related Questions

I have an Android app that can be downloaded from the Google market and
I have a android app project in Eclipse, and in my activity containing a
I have an android app that extends a MapActivity, so I can't extend TabActivity.
How can a translation service be called in an Android app? Can we have
I have made an Android app where items can be purchased using in-app-billing .
I have android.permission.READ_OWNER_DATA but I can't find any reliable code that would explain how
I have a screen where you can enable/disable modules for my Android application. For
The Activity Lifecycle is giving me headaches. The documentation at http://developer.android.com/reference/android/app/Activity.html is so darn
I have an android app which needs to be signed using a specific keystore
I have an Android App which consists on different modules. The Main module is

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.