×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    2

    DynamicBrandingExample MIDlet does not work

    I am trying to use DynamicBrandingExample MIDlet provided with 6212 SDK. MIDlet starts in the emulator and asks to enter an AID. When I enter any 10 or 12 digit hexadecimal AID, it always gives an error "Authorization Failed".

    Is there anything else I need to do to make it work ?

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    182

    Re: DynamicBrandingExample MIDlet does not work

    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

  3. #3
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    2

    Re: DynamicBrandingExample MIDlet does not work

    Same problem even after signing the MIDlet.

    What AID should be used for a application in Secure Element in 6212 Emulator ?

  4. #4
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    50

    Re: DynamicBrandingExample MIDlet does not work

    I might be mistaken, but it seems to me that you can't give a specific AID to the simulated smart cards.
    At least in the case of MIDlets exchanging data with Smartcards, the AID you use in your SELECT doesn't matter, it selects your simulated smartcard app.

Similar Threads

  1. Nokia 6101 Locked 2 TMobile Midlet can't access internet...
    By Jason Glass in forum Mobile Java Networking & Messaging & Security
    Replies: 45
    Last Post: 2007-11-14, 02:19
  2. midlet doent not work my phone
    By baymayki in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2007-08-13, 11:08
  3. Replies: 9
    Last Post: 2007-07-20, 18:06
  4. Nokia 6600: midlet bluetooth-enabled applications don't work
    By pracucci in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-11-15, 16:04
  5. midlet dont work with some devices
    By puhmann in forum Mobile Java General
    Replies: 3
    Last Post: 2005-08-06, 10:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×