I have no idea what imageclass
is.
Generally speaking, you don't really want to pass too much complicated between activities. Think of activities as being like Web pages of a Web app, and the Intents as being the URLs you use to launch Web pages. You do not typically pass arbitrary objects in a URL. Instead, you perhaps pass keys, identifiers, or other information in a URL, so the server can access the right arbitrary objects that are kept on the server.
Similarly, via Intent
extras, you can pass simple data between activities, but you would not pass images, databases, business objects, or other complex materials that way. Instead, either keep those within a single activity, or maintain them in some central store (e.g., database, Service
, custom Application
subclass) and pass an identifier from activity to activity.
JonWillis' recommendation of using a content provider might work, but that is designed for fairly simple data structures, not your existing arbitrary objects.