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
New Contributor
Posts: 9
Registered: ‎04-13-2010
My Device: Blackberry 9500
My Carrier: O2

Re: String Encoding in simulator raw memory

Anyone have any further thoughts on this? Surely someone has come across this before?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: String Encoding in simulator raw memory

Have a look at

PersistentContent

New Contributor
Posts: 9
Registered: ‎04-13-2010
My Device: Blackberry 9500
My Carrier: O2

Re: String Encoding in simulator raw memory

Thanks, think you are right with that one!

One key point i noticed;

"For an object to be compressed, its size must be greater than or equal to 32 bytes."

Which seems consistent with what I have seen.

 

Are there any good examples / tutorials on using persistentcontent? I wouldnt want to encyrpt anything, just compress. I see code would need to be signed, so it might make this option a no go, but i can try it out without signing anything, right?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: String Encoding in simulator raw memory

Contacts demo provided with the JDE uses it.

 

Apologies, I didn't remember it earlier, I couldn't remember the name. 

 

It is one of those classes that I have wanted to try for ages, but never managed to get round to it.  If you give it a go and have any words of wisdom, I'm sure we would all appreciate it.

 

And yes, you can test this in the Simulator without needing a signing key.  At $20, I would just get one if I were you....

New Contributor
Posts: 9
Registered: ‎04-13-2010
My Device: Blackberry 9500
My Carrier: O2

Re: String Encoding in simulator raw memory

[ Edited ]

Brilliant, thank you for all your help. I'll report back if i find anything useful Smiley Happy