Hi,
In the current release of the SDK, there is a bug that prevents
application-specific Serializable or Parecelable objects from being used in
the extras data of an Intent when starting an activity.
Also, the use of Serializable is not recommended because it is extremely
slow.
Thanks,
Megha
On Mon, Mar 31, 2008 at 10:28 AM, Android-Berry <[EMAIL PROTECTED]>
wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---