BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 01-27-2010, 09:40 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2009
Model: Strom
PIN: N/A
Carrier: Vodafone
Posts: 28
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question How to generate 2 Resource files in a single class in Blackberry 4.5 ?

Please Login to Remove!

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 ?
Offline  
Old 01-27-2010, 10:10 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2009
Model: Strom
PIN: N/A
Carrier: Vodafone
Posts: 28
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question

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 ?
Offline  
Old 01-28-2010, 07:03 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2009
Model: Strom
PIN: N/A
Carrier: Vodafone
Posts: 28
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question

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 ?
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Universal Car Antenna OEM Stubby Antenna Dodge RAM (2009-2016) Radio GPS
$33.88
Universal Car Antenna OEM Stubby Antenna Dodge RAM (2009-2016) Radio GPS  pictureGE Fanuc IC610CPU101C CPU w/1K Ram Module IC610CPU101
$19.99
GE Fanuc IC610CPU101C CPU w/1K Ram Module IC610CPU101 pictureRAM-PAC HW-1 Hydraulics Spreader 1 Ton Capacity
$174.99
RAM-PAC HW-1 Hydraulics Spreader 1 Ton Capacity pictureALLEN BRADLEY CIRCUIT BOARD NME 635323 REV-5 W/ RAM MEMORY MODULE 1772-ME CNC
$300.0
ALLEN BRADLEY CIRCUIT BOARD NME 635323 REV-5 W/ RAM MEMORY MODULE 1772-ME CNC pictureFANUC RAM UNIT A350 2902-T258/05
$300.0
FANUC RAM UNIT A350 2902-T258/05 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.