×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    85

    How can I give SMS permission to my application.

    Hi,

    I developed a Midlet application which will send and receive SMS, I singed my Midlet using Thawte.
    After installing the application to the phone, I have to manually give SMS permission.

    How can I give SMS permission programmatically?

    Thanks.

  2. #2
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: How can I give SMS permission to my application.

    You can set the required SMS permission in the JAD file with the help of your ide or Sun WTK and then sign the build, but still you may need to educate the end user to go to application settings and set the required permissions as "Always Allowed" or "Ask only once".
    Thanks,
    Ekta

  3. #3
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: How can I give SMS permission to my application.

    Signing would remove the security permission messages, but user have to manually modify it.
    Pls see API Access rights in real devices available in the URL http://wiki.forum.nokia.com/index.ph...on_real_phones
    Users have to manually modify this in settings(How to change the Java API access settings is also mentioned in the above URL) ; if you want to provide better usability, you can show an alert to the user during application startup on how to change the API access settings. It would be good to show this alert to the user during app startup till the user changes the settings.There is a J2ME API call to check the permissions:

    public final int checkPermission(String permission)

    Detailed info please check: http://java.sun.com/javame/reference...et/MIDlet.html

    On re-launch of the application, if the permissions are not set, detect this and display the instructions again. If permissions are set, then proceed with the normal application.

    Regards
    Gopal

Similar Threads

  1. Configuration-SMS permission of my midlet
    By Herbutinde in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2010-04-30, 20:02
  2. How to give permission to WebServer folder
    By nadiuska in forum Mobile Web Server
    Replies: 3
    Last Post: 2009-03-09, 12:09
  3. How to set SMS permission in JAD
    By yfllrj1314 in forum Mobile Java General
    Replies: 2
    Last Post: 2008-12-18, 01:19
  4. Permission for sending SMS
    By cassioli in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2008-01-13, 12:59
  5. Application Permission
    By twoflower in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2007-09-27, 23:42

Posting Permissions

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