On Thu, Dec 30, 2010 at 3:36 AM, maomaostevencao <
[email protected]> wrote:

> What you have said is the common way to pass arguments to an activity.
>

Right.


> But my question is about how to pass an object of user defined class to an
> activity.
>

Passing a user defined object to an Activity is not much different than
passing, say, an int. Re-read this thread - that's exactly what was
discussed.


> One guy said that it could be done by implementing some common functions
> for this activity and calling those functions to pass object to this
> activity, but how I can get the activity reference would be a problem.
>

If you're referring to Neilz's post, the second part of that was that he
uses static objects - no need to pass an Activity reference around. Each
Activity, when active, would use itself to access the user-defined static
objects.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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