10-06-2009 05:47 AM
10-06-2009 05:56 AM
I have not used the Desktop Manager to install my application as I have said many times in my posts. I have used the Blackberry Manager (server administration utility for BES) to wirelessly deploy the application. The Desktop Manager (although I may be mistaken) refers to the package the users can install on their own PC to deploy applications and files to their personal Blackberry.
So back to my question,
So how do I add resource files (custom properties like _whats the ip of the server_) that can be updated at deployment time?
10-06-2009 05:57 AM
10-06-2009 06:05 AM
This is not a viable solution (have the user update the server ip.......)
I am new to Blackberry development (circa 5 months) and fairly new to these forums so, just to establish context, are the people replying actually working for RIM?
The reason I ask, I just cannot believe that RIM would create a BB software framework that did not allow for deployment time updateable resource files. This is a basic necessity for any application (internationalisation, program specific variables). Are you BB developers recompiling/resigning every time you need to change "Debug" to "True"?
What does RIM recommend we do for resource files that dont need recompile/resign?
10-06-2009 07:03 AM
10-06-2009 07:14 AM
10-06-2009 07:40 AM
And for those who stumbled in here searching for an answer:
1) Goto your BES Manager (admin console)
2) Click the Blackberry Domain node in your treeview
3) Click "EditProperties in the main pane
4) Click IT Policy in your left pane
5) Find the It policy your users of the application is using and click Properties
6) Click User Defined Items
7) Click IT Policy template "..."
8) Click New
9) Add your variable based on its type (mine was a String type)
10) Click Ok Ok Ok
Add this code, and it will retrieve your value. Remember you have to sign your code using the RIM SignatureTool.jar.
public class TestScreen extends MainScreen
LabelField applicationTitle = new LabelField("Test Custom IT Policy Property");
RichTextField textField = new RichTextField(GetApplicationProperty());
public String GetApplicationProperty()
String ip = ITPolicy.getString("ServerIp");