×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    17

    Question Intermittent Midlet crash on 6630

    I have experienced an intermittent MIDlet crash that seems very hard to understand.

    I have tested the code below on a Nokia 6630. Repeat runs of entering three or four character strings in the two fields alternating with clearing one of the fields (so the alert is shown) will eventually result in the midlet quitting without showing any exception alert.

    It does not appear to occur on other series 60 devices (such as a 6600).

    Does anyone have any similar experience or know of any work-around?

    Code:
    public final class CrashForm extends Form implements CommandListener
    {
        private final TextField m_name = new TextField("Name", "", 50, TextField.ANY);
        private final TextField m_url = new TextField("Tag", "", 255, TextField.ANY);
    
        public CrashForm()
        {
            super("Test");
            setCommandListener(this);
            super.addCommand(new Command("Save", Command.OK, 1));
            super.append(m_name);
            m_url.setLayout(Item.LAYOUT_NEWLINE_BEFORE);
            super.append(m_url);
         }
    
    
        private void save()
        {
            final String name = m_name.getString();
            final String url = m_url.getString();
            if(name.length() > 0 && url.length() > 0)
            {
                m_name.setString(null);
                m_url.setString(null);
            }
            else
            {
                final Alert alert = new Alert("Invalid details", "Please try again", null, 
                                           AlertType.INFO);
                Display.getDisplay(s_instance).setCurrent(alert, this);
            }
        }
    
        public void commandAction(final Command command,
                                  final Displayable displayable)
        {
            save();
        }
    }
    Last edited by springwood64; 2006-03-28 at 09:40.

Similar Threads

  1. Launching a 3rd-party Trusted Java Midlet on Nokia 6630
    By vichoty in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2012-06-23, 15:21
  2. 6630 Slow Midlet
    By plewis66 in forum General Development Questions
    Replies: 0
    Last Post: 2006-01-23, 09:56
  3. Prefetching Midi file causes midlet to seize up on 6630
    By paulgeraghty in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-06-12, 20:56
  4. Crash when running midlet from Sun Java Studio mobility
    By mgyorffy in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-02-01, 22:26
  5. 'Response Unknown' when downloading midlet
    By Weevil in forum Mobile Java General
    Replies: 3
    Last Post: 2004-05-30, 17:01

Posting Permissions

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