Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
ravindrakamble
Posts: 68
Registered: ‎07-21-2008
My Device: Not Specified

How to set permissions to access phone logs programmatically?

Hello,

 

I have developed one application which accesses phone logs. when i install this application into device, every time I have to set the permissions by using edit permissions. How should i do it programmatically?

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How to set permissions to access phone logs programmatically?

it's a security feature, you can not do it programatically. once per install is sufficient though.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How to set permissions to access phone logs programmatically?

You can use the ApplicationPermissionsManager class to request the permissions required by your application.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker