On Mar 9, 4:52 pm, Zhiping Zeng <[email protected]> wrote: > I want to pass a class reference to an activity, and then the activity > will construct the view according to the content of the class.
Hi, There's no way to store references in an Intent because it may be passed to other virtual machines. If you want to store a class with data, then you could implement Parcelable, then store it as an extra in the Intent. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

