On Thu, Aug 16, 2012 at 7:26 AM, frantz lohier <[email protected]> wrote:
> Thank you Mark - this was never very clear in any of the books I've bought
> regarding Android programming or on Android website unfortunately.

Books and documentation cannot possibly cover the infinite variations
of applications and the ways that they are assembled.

> My question is:does getIntent() represent the argument of the intent that
> originally started the activity

I would phrase it as the one that originally created the activity.

> or does it reflect intent in the system that
> are forcing an activity to come to the foreground?

No. I think that you will be called with onNewIntent() in this case,
instead of onCreate(), and the Intent supplied to onNewIntent() will
be the one used by your startActivity() from the BroadcastReceiver. I
have not tried this in conjunction with a BroadcastReceiver and
FLAG_ACTIVITY_NEW_TASK -- at least not recently -- and so I am not
100% certain about onNewIntent() for your scenario.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

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