Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
fr4gus
Posts: 26
Registered: 08-10-2009
Accepted Solution

How to know amount of data to be persisted?

Hi All,

 

I'm building an application that has also a Jabber client. I want to keep the chat history, but I'm not sure how many data persist.

 

Is there any guide about how to calculate the amount of data to be persisted?

 

I'm working with JDE Plugin 4.5 on Eclipse 3.4, developing for Bold and Curve.

 

Thanks,

 

-fr4gus

Franklin Garcia
Senior Software Java Developer
Schematic
Costa Rica
Please use plain text.
Developer
ydaraishy
Posts: 562
Registered: 09-30-2009

Re: How to know amount of data to be persisted?

Better to save chat history to memory card rather than in persistent storage.

Please use plain text.
New Developer
fr4gus
Posts: 26
Registered: 08-10-2009

Re: How to know amount of data to be persisted?

I was thinking on that too, I 'm trying to avoid serialize/deserialize objects. But looks  I don't have other choice, have I?

Franklin Garcia
Senior Software Java Developer
Schematic
Costa Rica
Please use plain text.
Developer
ydaraishy
Posts: 562
Registered: 09-30-2009

Re: How to know amount of data to be persisted?

You're not really serializing or deserializing anything. Just read the lines from the file into your data structure and back again when you want to write it back out to disk.

Please use plain text.