BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   How to generate 2 Resource files in a single class in Blackberry 4.5 ? (http://www.blackberryforums.com/developer-forum/218004-how-generate-2-resource-files-single-class-blackberry-4-5-a.html)

Shreyas 01-27-2010 08:40 AM

How to generate 2 Resource files in a single class in Blackberry 4.5 ?
 
Hi,

I am creating a resource file using

Code:

ResourceBundle _resources = ResourceBundle.getBundle(BUNDLE_ID,        BUNDLE_NAME);
Now i want to create another Resource file in that same class.

Can i do it in the same way like for first Resource file ?

The interface ResourceFile.java is an auto-generated file. Then how to view it ?

Shreyas 01-27-2010 09:10 AM

I m able to view interface ResourceFile.java file.

ResourceFile.rrc consists of Keys & Values. From a Key I can get its value using

Code:

_resources.getString(key);
But how to get Key ? I want to get the list of all Keys available in my resource file . How to get it ?

Shreyas 01-28-2010 06:03 AM

I have solved this error.

Now I want to get the list of all Keys available in my resource file . How to iterate through all Keys available in ResourceFile.rrc ?

How to get it ?


All times are GMT -5. The time now is 12:21 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.