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 <> wrote:

Dianne Hackborn
Android framework engineer

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. android.text.format.Time.parse3339

the following code:

        Time t = new Time("GMT");

produces the following error:

        android.util.TimeFormatException: Unexpected 0 at position 19.
Expected + or -

my understanding is that the format of the timestamp meets the


any thoughts?  here are the results of some more investigation:

        Time t = new Time("GMT");
        t.parse3339("2010-06-25T11:30:00.000Z");                // works
        t.parse3339("2010-06-25T11:30:00.000-08:00");   // works
        t.parse3339("2010-06-25T11:30:00Z");                    // works
        t.parse3339("2010-06-25T11:30:00-08:00");               // BROKEN

it appears that the fractional sections are required when a timezone
offset is present.

i'm using android 2.1 (API 7).


2. How would I include non-class files in my apk?

Usually, for stuff to load into a WebView, assets/ is a better answer
than res/raw/. Here is a sample project:


3. How would I include non-class files in my apk?

4. Custom ListView complex item does not appear correctly

5. How would I include non-class files in my apk?

6. Ers(hare): touchwiz launcher galaxy s

7. Login form implementation options