×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    2

    Displaying an Alert on a J2ME device

    Hello,

    I am having some problems getting an alert box to popup.

    I am using the following code for the alert:

    Alert al;
    al = new Alert ("Error", "Unauthorized", null, null);
    al.setTimeout(Alert.FOREVER);


    I am having problems getting the alert displayed:

    SubmitCredentialsDisplay smcDisplay = new SubmitCredentialsDisplay(parent);

    Display.getDisplay(MediData.instance).setCurrent(al, smcDisplay);

    When the code is run it simply doesn't display the alert or returnes to the previous screen, it just seems to ignore the code and display the current screen.

    If anyone has done this before I'd appreciate any help

    Regards
    John

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Tampere / Finland
    Posts
    201
    Hello,

    I haven't experienced this before, in fruitmachine example MIDlet, an Alert is used as a splash screen, maybe you can check the codes and slove your problem.

    Regards,
    Kui

Posting Permissions

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