• 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
 
this is supposed to be a surprise, but it smells like a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!