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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:30:05+00:00 2026-06-10T17:30:05+00:00

I have 3 Activities:Activity A,B and C Activity A is my login activity where

  • 0

I have 3 Activities:Activity A,B and C
Activity A is my login activity where user logs in to his account,
Activity B is the dashboard
and Activity C is has ListView

On Android Phone:
When im on Activity C i press Home button on my phone it takes me to home screen of phone and than when i try to start the app again it takes me to Activity A instead of Activity C where i left initially.

On Emulator:
When im on Activity C i press Home button on my phone and than when i try to start the app again it takes me to Activity C.

Also i have setup onResume on each activity just to check if phone has access to internet when the activity is resumed.
Now the problem is that i don’t understand why im not getting the same behavior on phone as im getting on emulator.

I want app to start from the Activity C where i left it.I want the same behavior as im getting on Emulator.

Also no errors or crash is happening on emulator.So its hard for me to track down the problem.

Please guide me on what should i do or please tell me what might be the problem.

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-06-10T17:30:05+00:00Added an answer on June 10, 2026 at 5:30 pm

    Concerning you are not using Eclipse to launch the app – I would like to introduce another solution.

    Please take a look at the following key of Activity tag in Manifest: android:alwaysRetainTaskState
    http://developer.android.com/guide/topics/manifest/activity-element.html#always

    According to documentation, it’s default value is false. If set to true in the task-root activity (Launcher in your case, I think) – it will tell the system to always keep the state of the task and do not reset it. So even when the process will be killed – after relaunch you should appear in the latest task state.

    However, be careful, because this approach will be ruined if

    1. You will specify it not for root of the task.
    2. If you use Task-manipulating flags for your intents inside application. For example FLAG_ACTIVITY_CLEAR_TASK/FLAG_ACTIVITY_CLEAR_TOP/etc

    Good luck

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

Sidebar

Related Questions

Assume that we have 3 different activities. Each activity has its own XML file
I have two activities; Home is my first activity and Settings is my second
I'm trying to write an android application that has two main activities: login screen
When I have two activities Activity A, B; // A stands for Login Screen
I have 2 activities. One called Login and another called ListDeals . Login has
I have 2 activities. The first activity is an activity that parses JSON data
I have four activities namely, Demo_tabActivity.java [main activity] Tabhost.java The below two activities are
I have four activities namely, Demo_tabActivity.java [main activity] Tabhost.java The below two activities are
I have two activities. In first I come to the second activity from first
I have an application in which I have different activities. In 1 activity, I

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.