• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to set Application permission

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"ajj dev",
Please check your private messages regarding an important administrative matter.
-Ben
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic