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

10PCS SOT23 SMD NPN AMPLIFIER MMBT5551 BT5551 SOT-23 DIY DEVELOPE IC NEW G0
$0.99
10PCS SOT23 SMD NPN AMPLIFIER MMBT5551 BT5551 SOT-23 DIY DEVELOPE IC NEW G0 pictureProgressive Electronics 200EP Inductive Amplifier
$64.99
Progressive Electronics 200EP Inductive Amplifier pictureLot Of 2 Tx Rx Systems Inc Amplifier 425-86A-03 Used Great Deal
$49.99
Lot Of 2 Tx Rx Systems Inc Amplifier 425-86A-03 Used  Great Deal picture10PCS Gilded red RCA Sockets Binding Post for CCTV Video Audio Power Amplifier
$4.99
10PCS Gilded red RCA Sockets Binding Post for CCTV Video Audio Power Amplifier pictureOrtec 410 Linear Amplifier BIN Plug-In Module
$100.0
Ortec 410 Linear Amplifier BIN Plug-In Module picture






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