Thread: rasource bundle
View Single Post
Old 09-12-2009, 07:53 AM   #1 (permalink)
Sujit
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 07:54 AM.
Offline   Reply With Quote