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. sample source code for beginner

Dear all android experts,

I'm trying to get my 1st android application (blackjack) going and am
so confused with layouts button etc etc. Are there any sample source
code for me to review? I have ran through the source that come with
the SDK and the android source tree.

Still pretty confused. am I stupid?

really appreciate your help in advance

Tony
in Beijing


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

2. Just got notice of my first chargeback, any other devs getting them?

This sucks!

I hope that at least the chargeback is tied to your Google Checkout
sales list so that the customers has the copy of your app uninstalled
from his/her phone.

But don't hit on the customer too much. You never know. I'm not sure
how fraudelent charges are handled by the CC companies. But it may be
that the actual 'customer' had his/her credit card stolen and disputed
all charges since a given date. This may then have included the
purchase of your game by the thief.

If not, just disputing a $0.99 charge like this... what a
cheapskate :=)



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

3. Read the SMS already stored

4. Drawable or Uri for Notification icon

5. Visibility of ImageButton

6. ERROR/MediaPlayer(1066): setDataSource called in state 128

7. Intent to Trigger a Dialog Only