Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 41
Registered: ‎12-22-2010
My Device: Bold 9000
My Carrier: Mobicom

how to serializable in blackberry ?

hi developers. how to serializable my class. that's show erroring

Developer
Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to serializable in blackberry ?

option 1:

use persistable. this is the blackberry persistance model, but it has some backdraws, especially when a class hierarchy is concerned or you want to have shared classes.

 

option 2:

serialize yourself. you can use recordstore (j2me) or file storage to save the files. but you have to implement it yourself, for example using xml.

 

option 3:

ksoap2, usually for webservices, offers serialization, but you have to take care of the saving yourself.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Contributor
Posts: 41
Registered: ‎12-22-2010
My Device: Bold 9000
My Carrier: Mobicom

Re: how to serializable in blackberry ?

hi thanks to simon_hain for reply. please if it's possible can you send me full details code. it's pain me.

 

 

             thanks simon_hain. i hop you reply. please help me

Developer
Posts: 16,997
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to serializable in blackberry ?

http://docs.blackberry.com/en/developers/deliverables/17952/index.jsp?name=Data+Storage+-+Developmen...
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter