03-04-2009 08:17 PM
Solved! Go to Solution.
03-11-2009 09:59 AM
The recommended approach is to use your package name and classed name:
This example equates to: 0x9fd1c13aff6c669dL
To convert a string to a long value highlight the string in the BlackBerry JDE or Eclipse, right click and then choose "Convert String to Long". Note that if you are using Eclipse this feature requires the BlackBerry JDE Plug-in for Eclipse be installed.
03-19-2009 08:23 AM
Is there a way to do this programitically? It would be nice to be able to do something like:
static long persistantKey = "com.rim.samples.device.helloworld".hashCode();
However, this only produces an integer not a long so I think it is not as unique.
- Will Mathies