08-25-2009 08:54 PM
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.
Solved! Go to Solution.
08-25-2009 10:56 PM
You can create a string that is unique to your app and create a hash value.
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"