Thanks, I got it. 2010/4/19 Kumar Bibek <[email protected]>
> There's no simple way. You are on the right track. > > However, a cheap workaround would be to have this arraylist as a > static variable of your source activity. This way, you can access this > Array List from your destination activity > > Thanks and Regards, > Kumar Bibek > > On Apr 19, 11:46 am, Ke Wu <[email protected]> wrote: > > ---------- Forwarded message ---------- > > From: Ke Wu <[email protected]> > > Date: 2010/4/19 > > Subject: Pass ArrayList parameters between two activities. > > To: [email protected] > > > > Hi all, > > Today I met a problem, I need to pass a ArrayList<MyClass> from an > > activity to another. I dont know what the Intent exactly do when I use > > putExtra to pass in an ArrayList<MyClass> object. > > > > I guess MyClass need to implement Parcelable interface, so I just > did > > it. But still, it does not work. > > > > Maybe I need to create a Bundle and then use Bundle's > > putParcelableArrayList > > method to put my ArrayList<MyClass> object in, and then pass this bundle > as > > parameter of putExtra to the intent. > > So crazy! I am lazy, I just want to pass an ArrayList<MyClass> object > > simply, is there a simple way?? > > > > Any suggestion would be greatly appreciated! > > > > kerl.d.w > > > > -- > > 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]<android-developers%[email protected]> > > For more options, visit this group athttp:// > groups.google.com/group/android-developers?hl=en > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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

