[android-developers] how to pass complex objects between activities
I am trying to pass a user defined object to another activity
Bundle bundle = new Bundle();
bund.putSerializable("myData", myData);
intent.putExtra("bundle", bundle);
where myData class implements Serializable interface.
I am getting following error:
java.lang.RuntimeException: Parcelable encountered IOException writing
serializable object
Could anyone please let me know how to pass complex objects between
activities?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home