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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:54:07+00:00 2026-05-26T17:54:07+00:00

For simply, I write an app with Splash, Home, Child1 and Child2 with following

  • 0

For simply, I write an app with Splash, Home, Child1 and Child2 with following flow: Splash -> Home -> Child1 -> Child2. And we can back from Child2 to Child1, from Child1 to Home, and back from Home to exit app.

It sounds simple. I can navigate between these screens correctly.

Problem when I install app via OTA. After enter Splash -> Home -> Child1 -> Child2. Staying Child2, I press HOME button to minimize app, and re-enter app by choose app icon. But when re-entering app, it doesn’t resume at Child2 but start from Splash -> Home. I cannot understand what happens here. It should resume at Child2 instead.

More surprised thing is, at Home screen, when I press BACK button to exist app, now Child2 is resumed (o_O). And from Child2, now I can back to Child1, and to Home, and back again to exist app.

All these issues happen when I install app via OTA but app works normally when I install by cable.

Can anyone tell me what happens in my situation? Any help is appreciated

Many thanks.

P/S: I get this bug when testing on Nexus 1 (Android 2.2) and Nexus S(Android 2.3.x)

Edit: even CNN app for Android still have this issue… Is it belong to OS?

  • 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-26T17:54:07+00:00Added an answer on May 26, 2026 at 5:54 pm

    This has to do with task affinity I guess. And it’s not just the CNN app, all apps behave like that because some developers (like me!) don’t understand how the task concept works. I won’t lie to you, even I don’t understand this all the time.

    I believe this happens because, when you launch your app from the Market, your app becomes part of the Market task. Therefore, you have an instance that “belongs” to the Market task. You can navigate normally from it. All the problems happen when you press Home because…

    If you start the activity from the Launcher, you start a new task for the app, giving you 2 “instances” of the app, one belonging to the previous Market task, the other belonging to your own app (where you are the root of your own task).

    On this new task, you can navigate back, and eventually you will reach the previous task, which has another instance of your app. You will reach the point where you left off (considering regular launch mode for the activities). Sometimes, this is odd because we normally think that one app has only one instance, when it’s not how it works, nor it’s how it should work. I loosely compare that with launching twice an app in Windows having two Windows open. In Android, this analogy is similar (at least to me).

    This is all fine when you start your app from another app, when the task concept feels natural.

    However, in this case it becomes weird because when we launch the activity from the Market, we expect the instance to be the same that will be in the Launcher (when launched from there). We naturally don’t expect that the Market, used to download the app, will own an app that we installed, and that we (obviously) want to use separately from the Market app (I don’t think a Market should own a task when using the “Open” button).

    To solve that, I believe you could fiddle with allowTaskReparenting. However, in case it’s really that which is causing this issue, I don’t recommend it because this could break other legitimate uses for the task system.

    Finally, this is how I believe tasks work, and that’s my guess to where this problem comes from. I could be wrong, so please forgive me if this answer becomes useless later (if you find another cause that answers this).

    Good luck!

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

Sidebar

Related Questions

I have to write a simple Java app which can load pictures, show it
This is an offline app And I am simply trying to write back to
I am using GWT to write a simple app. Ive divided the view into
I'm new to cakephp and trying to write a simple app with it, however
I am trying to write a simple HTML 5 app for Windows Phone 7/7.5.
I write a simple application to understand POSIX message queues. But the app continuously
I would to write a simple NodeJS app, that reads a file, analyzes its
I'm trying to write my first simple mvc app. I have a Main View
I'm writing a simple web app in PHP that needs to have write access
I wrote a simple Sinatra app that generate an image using rmagick from some

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.