×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Super Contributor
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546

    Default permission for applications in Trusted 3rd party domain

    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
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Default permission for applications in Trusted 3rd party domain

    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
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546

    Re: Default permission for applications in Trusted 3rd party domain

    ok...thanks

  4. #4
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Default permission for applications in Trusted 3rd party domain

    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
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546

    Re: Default permission for applications in Trusted 3rd party domain

    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
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546

    Re: Default permission for applications in Trusted 3rd party domain

    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
    Join Date
    Mar 2003
    Posts
    4,104
    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
  •