Saturday, September 17, 2011

Re: [android-developers] passing objects to pushed activities

On Sat, Sep 17, 2011 at 11:51 AM, John Goche <johngoche99@googlemail.com> wrote:
Now I would like to pass the new FooActivityClass instance an object as a data parameter which FooActivityClass can then retrieve and operate on.

You don't want to do that. Why do you think you need to? What are you trying to achieve?
 
Is it possible to pass such a parameter.

Not really.
 
Otherwise it seems I will have to resort to global variables which is not very nice.

You will not have to resort to global variables unless you just starting programming last Monday. I guarantee you there is a better way if you explain what you're trying ultimately achieve.

-------------------------------------------------------------------------------------------------
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment