why not class implementes Serializable myBundle.putSerializable( and get the class back?? is there a performance issue?
On Dec 30 2010, 5:21 pm, TreKing <treking...@gmail.com> wrote: > On Thu, Dec 30, 2010 at 3:36 AM, maomaostevencao < > > maomaosteven...@hotmail.com> 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en