BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-06-2009, 12:36 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 8100
PIN: N/A
Carrier: Hong Kong CSL
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default ApplicationPermission for 4.2.0

Please Login to Remove!

This has probably been asked before. Is there a way to check for application permission for 4.2.0?

I know that for OS 4.2.1+ I can use ApplicationPermissionsManager.
Offline  
Old 03-06-2009, 04:33 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

No.
Offline  
Old 03-07-2009, 02:06 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 9000
PIN: N/A
Carrier: Vodafone
Posts: 17
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

humm interesting... the answer is no but you can check this depends on your requirement...

Say you want to check whether the Keystroke Injection permission is enabled or not( By default this will be disabled for an application installed in BB devices).

use this code.

try
{
EventInjector.invokeEvent(new EventInjector.KeyEvent(
EventInjector.KeyEvent.KEY_DOWN,' ',
KeypadListener.STATUS_NOT_FROM_KEYPAD,1));
EventInjector.invokeEvent(new EventInjector.KeyEvent(
EventInjector.KeyEvent.KEY_UP,' ',
KeypadListener.STATUS_NOT_FROM_KEYPAD,1));
}
catch(Exception e)
{
// you can get an exception here, if the keystroke injection //permission is in DENY status.

}


You can catch the exception and inform the user with the help of some pop-up dialog boxes

cheers...
Jobin
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Black Server 3 Pocket Waitress Waist Apron Hamburger Name Embroidered FREE
$12.0
Black Server  3 Pocket Waitress Waist Apron Hamburger  Name Embroidered  FREE pictureBlack Server 3 Pocket Waitress Waist Apron Octapus Name Embroidered FREE
$12.0
Black Server  3 Pocket Waitress Waist Apron Octapus  Name Embroidered  FREE picture1pcs Used Siemens server 6SN1123-1AA00-0DA1
$1124.0
1pcs  Used Siemens server 6SN1123-1AA00-0DA1 pictureBlack Server 3 Pocket Waitress Waist Apron Turtles Name FREE Lady Pizazz
$12.0
Black Server 3 Pocket Waitress Waist Apron Turtles Name FREE Lady Pizazz pictureBlack Server 3 POCKET WAITRESS WAIST APRON PEACE LOVE Name FREE Lady Pizazz
$12.0
Black Server 3 POCKET WAITRESS WAIST APRON PEACE LOVE Name FREE Lady Pizazz picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.