×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    5

    Alerts interupting menu selection crash on Symbian 9.1/9.2

    My Java application displays a password that displays an alert after it times out. In Symbian 9.1/9.2, but not 9.3, if the alert occurs while a user has the menu open to select a command, then the application freezes on the alert. Selecting the okay button does nothing. Are there any workarounds for this?
    Last edited by casebash; 2010-04-08 at 07:16.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Alerts interupting menu selection crash on Symbian 9.1/9.2

    how excatly are you handling the alert ?

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    5

    Re: Alerts interupting menu selection crash on Symbian 9.1/9.2

    I am using the default handler (the alert is implicitly dismissed)

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Alerts interupting menu selection crash on Symbian 9.1/9.2

    How are you setting the aler, basically you need to tell the excat methods you are using, and propably show code snippeds on the parts where you are doing it in a code. Also please do not post unneccessary code, since it makes it so much harder to read.

  5. #5
    Registered User
    Join Date
    Mar 2010
    Posts
    5

    Re: Alerts interupting menu selection crash on Symbian 9.1/9.2

    Here is the code as requested

    Calling the alert:

    Code:
    	timer.schedule(new TimerTask(){
    		public void run(){
    			Alert codeExpiry=createAlert("Your current token has expired. Close this alert and a new token will be displayed", AlertType.INFO);
    			Display.getDisplay(midlet).setCurrent(codeExpiry);	
    		}
    	},APPLICATION_TIME_OUT_SECONDS * 1000);
    CreateAlert method:

    Code:
    	public static Alert createAlert(String message, AlertType type) {
    		Alert msgBox = new Alert("Mi-Token", message, null, type);
    		msgBox.setTimeout(Alert.FOREVER);
    		return msgBox;
    	}

  6. #6
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Alerts interupting menu selection crash on Symbian 9.1/9.2

    What API is timer ? what API is Alert ? What API is String ?, also you should maybe consider writing wtuff more in C++ style, it usually works better that way.

  7. #7
    Registered User
    Join Date
    Mar 2010
    Posts
    5

    Re: Alerts interupting menu selection crash on Symbian 9.1/9.2

    This is Java

  8. #8
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Alerts interupting menu selection crash on Symbian 9.1/9.2

    Actually just noticed that this is under "Series 40 & S60 Platform Feedback", so I would then need to to specify on which technology you are working with, and you should in future remember to ask always under the technology used.

  9. #9
    Registered User
    Join Date
    Mar 2010
    Posts
    5

    Re: Alerts interupting menu selection crash on Symbian 9.1/9.2

    Is this the wrong location for a bug report?

  10. #10
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Alerts interupting menu selection crash on Symbian 9.1/9.2

    I would check by asking in java section to see whether it is bug on your code, or in system first.

Similar Threads

  1. Replies: 0
    Last Post: 2004-05-21, 11:16
  2. Replies: 2
    Last Post: 2004-05-08, 09:09
  3. Global Symbian Development Opportunities *High Importance*
    By sara.lindsay in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2004-05-07, 12:17
  4. Replies: 0
    Last Post: 2004-05-07, 11:45
  5. Replies: 1
    Last Post: 2002-05-08, 16:34

Posting Permissions

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