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

BlackBerry® OS Smartphones

Reply
Visitor
Posts: 1
Registered: ‎03-28-2012
My Device: smartphone
My Carrier: china

About setting permissions at blackberry 9800 phone's problem at development

I need to get help about .I run my application break  when I add application permissions(PERMISSION_IDLE_TIMER) in code.   

the code is:

ApplicationPermissions permissions = new ApplicationPermissions();

permissions.addPermission(ApplicationPermissions.PERMISSION_IDLE_TIMER);

ApplicationPermissionsManager.getInstance().invokePermissionsRequest(permissions);

 

When I progrom perform here, system prompt: "Application want  to change Appearance Setting" and I save it, but phone carsh.

 

the phone is blackberry@9800.  blackberry system is OS6.    System define permission is deny about permission_idle_timer.

 

How can I change the PERMISSION_IDLE_TIMER and program don't carsh