BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-12-2009, 06:53 AM   #1 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8300
PIN: N/A
Carrier: email
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up rasource bundle

Please Login to Remove!

Can anyone tell me how can i develop a blackberry application by using BlackBerry Resource bundle????????????
I need some sample code on it. I am using Eclipse Plug-in but i don't know how to use resource bundle to it.I me what should be the directory structure.
I have design my project like this.
com.cobisystems.blackberry.graphs and i have created a folder on it named Resource and i have created two file on it named newBBresource.rcc and newBBresource.rrh but when i m writting my program i m getting error.

This is my program.

//importing this package...
import Resources.newBBresourceResource;
import net.rim.device.api.i18n.ResourceBundle;


private ResourceBundle _resources=ResourceBundle.getBundle(newBBresourceR esource.BUNDLE_ID, newBBresourceResource.BUNDLE_NAME);

String s1 = _resources.getString(newBBresourceResource.HELLO_W ORLD_STRING);//i m getting error here

please help me to solve this problem.........

Last edited by Sujit : 09-12-2009 at 06:54 AM.
Offline  
Old 09-23-2009, 12:57 AM   #2 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8300
PIN: N/A
Carrier: None
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

What is the error you're getting?

I guess you don't need to specify the resource name while sending a parameter to getString method. Try using...

String s1 = _resources.getString(HELLO_WORLD_STRING);

When you select getString and click enter, you get a list of constants associated with the resource bundle to select from. Probably you'll even get HELLO_WORLD_STRING as an option.
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

SIEMENS 3TY6 483-OAK6 110-120V COIL *USED*
$95.0
SIEMENS 3TY6 483-OAK6  110-120V COIL  *USED* pictureASCO 238610-132D SOLENOID COIL 120/110V *USED*
$15.0
ASCO 238610-132D SOLENOID COIL 120/110V *USED* picture12V DC Coil Power Relay LY2NJ DPDT 8 Pin HH62P JQX-13F With Socket Base H&P
$5.01
12V DC Coil Power Relay LY2NJ DPDT 8 Pin HH62P JQX-13F With Socket Base H&P pictureWHITE-RODGERS 8A04-1 FAN RELAY SPDT 24VAC COIL REPLACES 867 HONEYWELL R8225
$39.99
WHITE-RODGERS 8A04-1 FAN RELAY SPDT 24VAC COIL REPLACES 867 HONEYWELL R8225 picturePARKER K593-014 COIL 24VDC * USED *
$27.0
PARKER K593-014 COIL 24VDC * USED * picture






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