Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 265
Registered: ‎08-27-2009
My Device: Not Specified

How to update propertyfile

Hi,

want to update the contenet in the Property file(Resource file .rrc file) programatically. How is it possible.

 

ResourceBundle res_Bund = ResourceBundle.getBundle(BUNDLE_ID, BUNDLE_NAME);

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to update propertyfile

you cannot do that from the BB.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 265
Registered: ‎08-27-2009
My Device: Not Specified

Re: How to update propertyfile

Hi,

 

 ResourceBundle res_Bund = ResourceBundle.getBundle(BUNDLE_ID, BUNDLE_NAME);

 

When we can get the String from property file by using res_Bund.getString method. then in same way how to set the value via code.

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to update propertyfile

allow me to quote myself:
you cannot do that from the BB.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 265
Registered: ‎08-27-2009
My Device: Not Specified

Re: How to update propertyfile

Then how to reset in BB...any other way can u suggest......

Highlighted
Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: How to update propertyfile

You can try and read your file on start up and then save it in the persistent storage as object(s).

 

E.