Blackberry Resource File Creation and Calling Method

(1) On the File menu, click New > Other.
(2) In the New dialog box, expand the BlackBerry item.
(3) Click BlackBerry Resource File.
(4) Click Next.
(5) In the Create a new BlackBerry Resource File dialog box, click the project folder for the BlackBerry device application.
(6) In the File name field, type the name of the .rrc file or .rrh file.
(7) Click Finish.


Calling Method:
public static ResourceBundle _res = ResourceBundle.getBundle
(stringsResource.BUNDLE_ID,stringsResource.BUNDLE_NAME);
private String valueText = ClassName._res.getString
(stringsResource.stringValue);
// stringsResource means fileName(strings)+Resource
// BUNDLE_ID and BUNDLE_NAME both are default.

Comments

Popular posts from this blog

Input filter (space not allowed) for EditText

Android Versions details

English - Formal and Informal words