×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    9

    MIDlet.checkPermission() doesn't work?

    Hi,

    I developed a MIDlet and signed it by VeriSign. The MIDlet is
    installed in the trusted 3rd party domain. I modify the security setting to make the security prompt not appear when access network.

    But it's strange that midlet.checkPermission("javax.microedition.io.Connector.http") always return -1 instead of 1. According to MIDP 2 spec., checkPermission() must return 1 if the permission is allowed. It works in SonyEricsson handset.

    I already add attibute MIDlet-Permissions: javax.microedition.io.Connector.http in JAD

    BTW, I test N73 and N76 and get the same result.

    Simon

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: MIDlet.checkPermission() doesn't work?

    Hi hting,

    this is the same behaviour reported here:

    http://discussion.forum.nokia.com/fo...d.php?t=138185

    Currently, this seems to be the default behaviour on Nokia devices. I agree with you that a result equal to 1 would be more appropriate when MIDlet is authorized by the user to connect (or perform other sensitive operations) without prompts.

    Pit

  3. #3
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: MIDlet.checkPermission() doesn't work?

    Hello Simon and Pit,

    based on the testing done here, http://discussion.forum.nokia.com/fo...heckpermission

    I've reported this behaviour forward to our internal experts. Be back with you once I have more info.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    9

    Re: MIDlet.checkPermission() doesn't work?

    Thanks a lot!

  5. #5
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: MIDlet.checkPermission() doesn't work?

    Hello Simon and Pit,

    UPDATE: latest on this issue can be found from now on from Forum Nokia Wiki:

    http://wiki.forum.nokia.com/index.ph...in_S60_devices

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

Similar Threads

  1. Replies: 2
    Last Post: 2004-04-27, 10:36
  2. CommConnection does not work with Series 60 SDK, but works in JWT
    By jackiechan2001 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2004-02-04, 09:07
  3. Does SDK v2.0 work on Series60 V6.1?
    By liying in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2004-02-02, 08:57
  4. does irda function work with the emulator ?
    By IGhost in forum Symbian
    Replies: 0
    Last Post: 2002-12-07, 17:43

Posting Permissions

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