12-19-2012 01:46 PM
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.
12-19-2012 05:42 PM
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.
12-19-2012 06:00 PM
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.