×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    117

    Smile ask help for read/write contact info error

    hi all,

    My application need to read and write contact information in mobile phone. I have buy a thawte java code signing certificate for my application.

    in the ant build.xml file, if I define permission like this:
    <attribute name="MIDlet-Permissions-Opt" value="javax.mocroedition.pim.ContactList.read,javax.microedition.pim.ContactList.write,javax.microedition.io.Connector.http,javax.microedition.io.Connector.sms,javax.microedition.io.Connector.file.write,javax.microedition.io.Connector.file.read,javax.wireless.messaging.sms.send" />, the signed application can be opend in nokia 5130 device. But application will throw java.lang.securityException exception when execute this code : PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE).

    if I change the permission like this :
    <attribute name="MIDlet-Permissions" value="javax.mocroedition.pim.ContactList.read,javax.microedition.pim.ContactList.write" />
    <attribute name="MIDlet-Permissions-Opt" value="javax.microedition.io.Connector.http,javax.microedition.io.Connector.sms,javax.microedition.io.Connector.file.write,javax.microedition.io.Connector.file.read,javax.wireless.messaging.sms.send" /> . when open the signed application in 5130 device, it give me prompt " Application not supported. Delete ? "

    any help is appreciate..thanks!

  2. #2
    Registered User
    Join Date
    Dec 2009
    Posts
    376

    Re: ask help for read/write contact info error

    You cant edit permissions thats why its throwin errors

  3. #3
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    117

    Re: ask help for read/write contact info error

    sorry. my stupid input error.....

Similar Threads

  1. Replies: 5
    Last Post: 2009-05-18, 16:41
  2. HELP!!! problem when read/write contact to sim
    By guaz in forum Mobile Java General
    Replies: 2
    Last Post: 2009-03-13, 02:10
  3. How to Read contact list and Send sms without ask confirmation...
    By chaoraksa in forum Mobile Java General
    Replies: 4
    Last Post: 2009-03-03, 06:04
  4. How to read contact info form SIM?
    By liuvictor2005 in forum Symbian
    Replies: 1
    Last Post: 2008-03-21, 04:16
  5. How to read or write contact groups to/from PIM?
    By giridharg in forum Mobile Java General
    Replies: 3
    Last Post: 2006-08-26, 01:16

Posting Permissions

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