Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set Application permission

 
Mutturaj Baradol
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
In my application i am using ApplicationPermission below is the code for the reference.
[code]
ApplicationPermissions ap =
ApplicationPermissionsManager.getInstance().getApplicationPermissions();
form.deleteAll();
Application.getApplication().addKeyListener(this);
Phone.addPhoneListener(this);
ap.addPermission(ApplicationPermissions.PERMISSION_PHONE);
ap.addPermission(ApplicationPermissions.VALUE_PROMPT);
ApplicationPermissionsManager.getInstance().invokePermissionsRequest(ap);
[\code]

as soon as i run my application it prompts me to select the permission i want to avoid this prompt screen and assign the permission manually.

any one know solution for this??

thanks
ajj
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"ajj dev",
Please check your private messages regarding an important administrative matter.
-Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic