Discussion Board

Results 1 to 7 of 7
  1. #1
    Super Contributor arpit2agrawal's Avatar
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546
    After signing a MIDlet in Trusted 3rd party domain permissions "Network access", "Read user data" & "Edit user data" are by default "Ask first time", "Ask always" & "Ask always" respectively. Is there any way to change them to "Always allowed" by programming... or at least "detect" if it is ask first time or ask always so that I can prompt user to change it...

  2. #2
    Registered User bhanuchandar.k's Avatar
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868
    Hi arpit2agrawal,
    Till now there is no api's available to detect the access permitions and set through programmatically
    Last edited by bhanuchandar.k; 2008-12-19 at 04:50. Reason: Removing question mark

  3. #3
    Super Contributor arpit2agrawal's Avatar
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546
    ok...thanks

  4. #4
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    Also note that there is slight variance on the default and available permissions.

    Some real life phone API permissions are listed in here
    http://wiki.forum.nokia.com/index.ph...on_real_phones

    Hartti

  5. #5
    Super Contributor arpit2agrawal's Avatar
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546
    I have found one way to detect whether any permission is set to "Always Allowed" or not...

    For example to check whether "Edit User Data" is set to "Always Allowed" or not:
    Step 1: Write a class which extends Canvas
    Step 2: Declare 2 variables boolean hideNotifyCalled and boolean showNotifyCalled
    Step 3: Set hideNotifyCalled to true if hideNotify is called
    Step 4: Set showNotifyCalled to true if showNotify is called
    Step 5: Initially set both the variables to false
    Step 6: Now just create a test file using FileConnection API and then delete it
    Step 7: If there is any exception raised then "Edit User Data" is not set to "Always Allowed" and user has denied the permission
    Step 7: If everything is successful then check variables hideNotifyCalled & showNotifyCalled
    Step 8: If in Step 7 both the variables are true then "Edit User Data" is not set to "Always Allowed" and user has allowed the permission else "Edit User Data" is set to "Always Allowed"

    Similar logic can be written for other permissions as well...

  6. #6
    Super Contributor arpit2agrawal's Avatar
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546
    Its not working for Nokia 3110 classic. It may work with some modifications... or may not... I will do it afterward and post here...

  7. #7
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,898
    Please, let us continue there …

Similar Threads

  1. GSM Third Party map data provider application for s60 3rd edition FP1 SDK
    By priya rajendran in forum Geolocation and Navigation
    Replies: 7
    Last Post: 2009-06-10, 07:15
  2. Replies: 2
    Last Post: 2007-03-06, 16:33
  3. Shortcuts to 3rd party apps on Series 40 phones
    By jje007 in forum Mobile Java General
    Replies: 4
    Last Post: 2003-08-31, 14:33
  4. Shortcuts to 3rd party apps on Series 40 phones
    By jje007 in forum Symbian C++
    Replies: 1
    Last Post: 2003-04-17, 11:38
  5. Shortcuts to 3rd party apps on Series 40 phones
    By jje007 in forum General Development Questions
    Replies: 0
    Last Post: 2003-04-17, 09:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved