I have create a class implements Serializable,
public class FormDef implements Serializable{
....
....
some string variable.
and some vector container holds some serializable obj.
...
...
}
call subActivity
Intent i = new Intent(this,RecordFieldScreen.class);
Bundle bundle = new Bundle();
bundle.putSerializable(ParameterDef.FORM_NAME, obj);
i.putExtra(ParameterDef.FORM_NAME, bundle);
i.putExtra(ParameterDef.VALUE_CARRY,false);
startSubActivity(i,ParameterDef.DETAIL_SCREEN);
after exectue startSubActivity statement, it throws me an error via
LogCat, say:
DEBUG/dalvikvm(519): Exception Ljava/lang/ClassNotFoundException; from
PathClassLoader.java:205 not caught locally
DEBUG/dalvikvm(519): NOTE: loadClass
'com.wallacewireless.android.forms.form.FormDef' 0x40018950 threw an
exception
DEBUG/dalvikvm(519): Exception Ljava/lang/RuntimeException; from
Parcel.java:891 not caught locally
So, How I can transfer an object to another activity?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---