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
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?

Highlighted
Developer
Posts: 17,011
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

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
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

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