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

Posts: 40
Registered: ‎03-29-2009
My Device: Storm 9550
My Carrier: AT&T
Accepted Solution

PersistentObject and signerId

If you look at the API docs for net.rim.device.api.system.PersistentObject, you'll see an example like this:


    long MY_DATA_ID = 0x33abf322367f9018L;
    Hashtable myHashtable = new Hashtable();
    PersistentObject persistentObject = PersistentStore.getPersistentObject( MY_DATA_ID );


Where does this long signerId come from?  Do you just make it up, and hope that nobody else picks the same value?  Is it supposed to represent one company, one application, or one coherent chunk of persistent data, within that application?  The javadoc for the method(s) that take the signerId as a parameter don't say much.  Any clarification would be greatly appreciated.

Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: PersistentObject and signerId

You can create a string that is unique to your app and create a hash value.


For example:




If you are using the JDE, you can highlight a string like this in the editor, invoke the context menu, and select "convert to long"