android - Sendind an Extra with my own kind of data -


i need pass data activity, don't know how since data variable specific class of mine. have like:

myclass variable=new myclass(); intent intent= new intent(this,secondactivity.class); intent.putextra("variablename", variable);   

i know error in code obvious, want know how can send data class of mine.

please looking parcelable how can make custom objects parcelable?

http://developer.android.com/reference/android/os/parcelable.html


Comments

Popular posts from this blog

Java sticky instances of class com.mysql.jdbc.Field aggregating -