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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -