×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    27

    Accessing the phone's contact list

    Hi all,

    I've found this post when looking for how to access the contact list:
    http://forums.sun.com/thread.jspa?threadID=5344397
    The problem is that it asks the user 3 times(!) for permission...
    Isn't there a way that asks only once?

    Thanks...

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

    Re: Accessing the phone's contact list

    Hello paskuniak,

    couple of options:

    1) In case you need to remove prompts during application development i.e. you do not necessarily need a real device, you can use some SDK emulator which (with esp. Nokia SDK emulators in mind) usually enables setting the access rights to maximum (=removes all the prompts for good).

    2) If you are using some device and you need to remove the prompts esp. for that, then depending on the device you would need to either a) set the access settings manually to something else than what is currently set as default (and which results in the current prompting), or alternatively in case of unsigned application and no chance to set the access settings to prompt only once for it, b) you need to sign the application by using some Java ME code signing certificate for 3rd party Java MIDlets, and, in case of no improvement in terms of less prompting after signing, then change the access settings manually for your device.

    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]

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: Accessing the phone's contact list

    Quote Originally Posted by paskuniak View Post
    Hi all,

    I've found this post when looking for how to access the contact list:
    http://forums.sun.com/thread.jspa?threadID=5344397
    The problem is that it asks the user 3 times(!) for permission...
    Isn't there a way that asks only once?

    Thanks...
    Yes, go to application manager and edit permissions setting for your app, make it "Ask only Once" for reading user data. but if this setting is grayed out for your application on your target device then you may need to sign your app with some trusted 3rd party code signing certificate from some signing authority, install the app again and then go to settings again to set it to ask only once.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. Contact list
    By GonzaloP in forum Mobile Java General
    Replies: 9
    Last Post: 2008-11-01, 00:31
  2. Replies: 3
    Last Post: 2008-08-11, 13:13
  3. Replies: 1
    Last Post: 2006-09-21, 00:40
  4. Contact List Box
    By tripiri in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-01-13, 12:13
  5. Accessing the phone's own number from MIDlet
    By roarl in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-03-08, 14:30

Posting Permissions

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