Be sure you read app fundamentals, especially about tasks:
http://developer.android.com/guide/topics/fundamentals.html#acttask

The entity launching the intent (the status bar) is not part of a task, so
it is starting an activity outside of a task, so the system forces the
NEW_TASK flag on the intent because there is nothing else it could do.

The only reason you would not be seeing onCreate() is if your activity is
already running.  To deal with this, you should make your activity
android:launchMode="singleTop" and you will receive the intent in
onNewIntent.

Also you most likely want to use PendingIntent.FLAG_UPDATE_CURRENT when
creating the pending intent.

On Fri, Jun 26, 2009 at 9:00 AM, Jason Van Anden
<[email protected]>wrote:

>
> some additional details in case someone here does not go there ...from
> logcat ...
>
> Starting activity: Intent { comp={com.blah.blahs/com.blah.blahs.Blahs}
> (has extras) }  << *** notice ... this is my intent called from the
> status bar ***
>
> startActivity called from non-Activity context; forcing
> Intent.FLAG_ACTIVITY_NEW_TASK for: Intent {
> comp={com.blah.blahs/com.blah.blahs.Blahs} (has extras) } << *** does
> this message mean my intent has been overridden? ***
>
> RESUMED CALLED
> Intent { action=android.intent.action.MAIN
> categories={android.intent.category.LAUNCHER} flags=0x10200000
> comp={com.blah.blahs/com.blah.blahs.Blahs} } << ** this is what
> appears when I call getIntent() under onResume, no more extras ...
> looks like intent got changed
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

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.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to