Hi,
this is code snippet from DynamicBrandingExample. It clearly shows that you are getting a SecurityException. So you need to sign ur midlet first.
Code:
/**
* Checks to see if user has entered a valid AID.
*/
private void checkAID() {
Tracer.note("String from text box is: " + aidBox.getString());
aid = aidBox.getString();
try {
brandConfig = new BrandingConfiguration(aid);
displayMainMenuItems();
} catch (IllegalArgumentException e) {
createAlert("AID", "Invalid AID! Try again", null, AlertType.ERROR);
Tracer.error(e);
} catch (NullPointerException e) {
createAlert("AID", "Invalid AID! Try again", null, AlertType.ERROR);
Tracer.error(e);
} catch (SecurityException e) {
createAlert("AID", "Authorization failed", null, AlertType.ERROR);
Tracer.error(e);
}
}
please have a look at the following thread
http://discussion.forum.nokia.com/fo...d.php?t=126801
Regards,
Sunil