activity is destroyed when press home key

by Dianne Hackborn » Wed, 30 Sep 2009 04:50:38 GMT


Sponsored Links
 i, I just replied to the bug, but should say something here as well --

This is intentional behavior, since launching a single task activity means
bringing it to the foreground, the stack is cleared so it can always receive
the new intent. So for example Browser, which is one of the few single task
activities -- if it is launched from somewhere with a new URI the root
activity needs to be brought foreground to display it.

The solution is simple: don't use single task. There are very very few
places where this is actually appropriate, and those few cases are for this
kind of special case behavior for the browser.

On Mon, Sep 28, 2009 at 6:52 AM, Johan Schring <scho...@gmail.com> wrote:



--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Facebook Places

Mau konfirmasi, ini Places di apps Facebook masih nggak bisa juga untuk Indo
sampe sekarang yah? Padahal di beberapa BB udah bisa?

Terima kasih banyak.

-- 
===============
"

2. Numpang Tanya

Sorry,  Ada tahu tempat jual accesoris HTC hero. Silicon ma anti gores.
Masalahnya takut baret aja screennya

--~--~---------~--~----~------------~-------~--~----~
Google Groups "
-~----------~----~----~----~------~----~------~--~---

3. Motorola Atrix 4G, HD multimedia dock, and laptop dock hands-on -- Engadget

4. Why is the original softkeyboard daemon still running even after I reconfigured it in the "setting"->keyboard?

5. capture frames from camera

6. [Ask] Beda Nexus S T Mobile sama yg Ngga

7. content provider update problem