2010/4/13 Darknoe <[email protected]> > Hi! > > I'm trying to pass an object from an activity to another activity. > > In the first activity i do: > > Intent intent = new Intent(this, SecondsActivity.class); > intent.putExtra("package.class", SerializableObject); > > And in the second activity: > > Class object = (Class) extras.getSerializable("package.class"); > objetc.modifySomething(2432); > > Intent intent = new Intent(this, ThirdActivity.class); > intent.putExtra("package.class", SerializableObject); > > But if i modify the object in the second activity, it fails when i > send this object to a third activity. > > Why does it fail? What am i doing wrong? > > I just need to pass objects between diferent activities because i have > an object which contains many information, and creating a Boundle > would be very big and ugly in my code :S > > -- > 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 > > To unsubscribe, reply using "remove me" as the subject. >
use Parcelable can do -- 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

