[android-developers] Re: How to serialize a Class that includes a Bitmap?
Bitmap doesn't implement Serializable. You could override readObject
and writeObject for your simple class and in those methods read and
write the Bitmap to a byte array for instance.
On Mar 29, 2:32 pm, saex <elpablos...@gmail.com> wrote:
> Hi
>
> I have a simple class that implements Serializable, because i'm
> serializating the class storing it on the sdcard into a file.
>
> The class haves a Bitmap inside, and the bitmap is not bening
> Serialized.... because when i recover the class from the sdcard binary file
> the bitmap is NULL
>
> How can solve this? i can't find info on google.
>
> Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home