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

Posts: 1
Registered: ‎12-19-2012
My Device: blackBerry torch
My Carrier: a

configuration file

My query is:


I have an application that gets data from web services, I need to set the url of the web services from a file, or something similar, once you compiled the application.
I mean, I have compiled the application and somehow change the url to web services without the need to recompile.


thank you!

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: configuration file

AFAIK, there is no good option sorry


if you are OTA downloading, you can use the JAD properties:



This will not work for App World or BES push.


For App World, there is no specific place for config file,  You could ask the user to copy a file to a specific location on the SD card.  Or may have some URL that runs some code that tailors a URL based on whatever criteria you supply.  . 


Or of course, you could ask the user to input it when the app first starts up. 


I believe one games company used to compile their games into a jar, then update the jar with the config file before converting the jar to a cod.  So the same game could have different skins easily without recompiling the game.  I've never tried this. 


Posts: 285
Registered: ‎08-06-2010
My Device: Z10

Re: configuration file

You could read a file from the device storage system in order to do this. That would be quite cumbersome to change a file on the device, but it would work.

Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples