11-18-2008 12:32 AM
I'm trying to read Jad properties from the emulator and it does not seem to work, whereas it works fine on an actual device. I'm using Eclipse Plugin with the 4.5 version of the JDE.
This code snippet always returns null on the emulator
private CodeModuleGroup getCodeModuleGroup()
CodeModuleGroup allModuleGroups = CodeModuleGroupManager.loadAll();
CodeModuleGroup codeModuleGroup = null;
String moduleName = ApplicationDescriptor.currentApplicationDescriptor
for (int i = 0; i < allModuleGroups.length; i++)
codeModuleGroup = allModuleGroups[i];
Also I notice on the emulator it does not list the app under Options / Advanced / Applications. I wonder if this is somehow related.
11-28-2008 02:40 PM
12-08-2008 10:49 PM
How was the application installed into the BlackBerry Simulator? Did you install it from a web server using the BlackBerry Browser or was it automatically copied by Eclipse? Were the custom properties added before or after build time? If they were added after, you'd have to install the application using the BlackBerry Browser to see them.
I usually just let Eclipse automatically copy it. How do I add custom properties before build time? Just manually edit the .jad that is on the file system? I tried that and it did not work .. the app on the emulator did not see the change I made.
Here's what I did:
Should I be changing the .jad directly or is there something in Eclipse where I can edit custom .jad properties?
12-16-2008 11:56 AM
Adding custom JAD properties at build time appears to be failing in the BlackBerry JDE Plug-in for Eclipse. I have reported this issue to our development team.