in here following code worked but you have to deploy the application using JAD file (download through the web) not the using alx file.
public static String getJADProperty(String Name){
CodeModuleGroup[] allGroups = CodeModuleGroupManager.loadAll();
CodeModuleGroup myGroup = null;
String moduleName="";moduleName = ApplicationDescriptor.currentApplicationDescriptor().getModuleName();
for (int i = 0; i < allGroups.length; i++) {
if (allGroups[i].containsModule(moduleName)) {myGroup = allGroups[i];
break;}
}
// Get the propertyString prop = myGroup.getProperty(Name);
return prop;}
You can get the custom property by calling
// You can get the MyTag:somethingString value = getJADProperty("MyTag")
Comments