> I have a situation where an activity needs to know where it was
> started from,
> so it knows what data to display in that current activity.

Put an "extra" in the Intent that launches it that specifies its origin
(e.g., putExtra(ORIGIN_KEY, STARTED_FROM_HERE); versus
putExtra(ORIGIN_KEY, STARTED_FROM_THERE)). Then, examine the extra in the
launched activity (e.g., getExtra(ORIGIN_KEY)).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



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