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

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -