07-10-2009 03:15 PM
Is it possible to access the built-in resource bundles on a device? In my application, I need to create a screen with my own "Save" and "Cancel" buttons. My application supports nine languages, but I would like to avoid having to translate strings like Save, Cancel, Yes, No, etc. that are already exist on the device. Is it possible to reference RIM's bundles?
I know that some strings live in the bundle "net.rim.device.internal.resource.Common." I even know that the strings for "Save" and "Cancel" are at ids 18 and 19 on my Storm. But, I doubt this is officially supported.
07-10-2009 06:07 PM
I don't completely know if I'm right! As far as I know, this Class had not been exposed.. But when you use it in your application, you would not able to sign your application, since there would be one extra key signer needed other than the three that are given for $20, which RIM hasn't kept for sale ..
07-13-2009 01:51 PM
The following code runs successfully on a Verizon Storm 9530. It creates a screen with "Save" and "Cancel" buttons. The text is pulled from RIM's internal resource files. I'd love to replace the 18 and 19 with constants, but I don't think they are exposed.
MainScreen screen = new MainScreen();
ResourceBundleFamily resources = ResourceBundle.getBundle("net.rim.device.internal.