×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    55

    problem running midlet on nokia 7650

    Hi,

    any time i use the code :

    try {

    ....


    } catch(Exception e) {

    ....

    }

    it pass compilation and jar building but after i tranfer it to the real device my (nokia 7650 via bluetooth) it intalls itself in to the application area but when i click on it it don't run.

    what can be he problem???

    many thanks zik.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    26
    You could try to only throw a specific error, and catching it.

    i.e.

    try
    {
    char[] m_array = null;
    g.drawChars(m_array, 0, 2,0,0,g.TOP|g.LEFT);
    }
    catch (Nullpointererrorexception e)
    {
    }

    (The nullpointererrorexception is probably wrong, just look up drawChars() and see what error it throws when it is given a null array).

    See what that does and let us know.

    Cheers,
    Laurence

  3. #3
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    55

    it's still doesn't wrok

    Hi,

    i did the folowing changes:

    try {
    conn = (MessageConnection) Connector.open(url);
    TextMessage msg = (TextMessage)conn.newMessage(MessageConnection.TEXT_MESSAGE);
    msg.setPayloadText("Please call me!");
    conn.send(msg);
    conn.close();
    }
    catch (IOException e) {
    // handle errors
    }

    i used IOException insted of Exception with no success.
    i get the same problem when i implement the CommandListener in the class decleration and with it method.

    what can be the problem???

    mant thanks zik.

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    7650 you say? It doesn't support WMA so you won't be able to run that code because of the WMA classes(MessageConnection and TextMessage) and not because of the try..catch block.

    shmoove

Posting Permissions

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