BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-01-2008, 05:01 PM   #1 (permalink)
New Member
 
dpthe1st's Avatar
 
Join Date: Dec 2008
Location: Rockville, Maryland, USA
Model: 7520
PIN: N/A
Carrier: Sprint
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Locking the device

Please Login to Remove!

Hi all,

I'm new to the blackberry APIs (done quite a bit of J2ME in the past). I came across an interesting little application - AutoLock (sorry, can't provide a link... forum's rule for newbees), which effectively lock the device until user is unlocking it.

I spent few hours looking for source-code example that will help me understand how to intercept/ignore the app switching (alt-esc) but could not find anything helpful. I dug some more in the APIs documentation and the only theory I came up with is to use a KeyListener, but even then - I'm pretty sure that my application will not be the first app to process the keypress, and therefore will not prevent the alt-esc from switching away from it.

Any idea?
Thanks,
David.
Offline  
Old 12-01-2008, 06:00 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

You cannot intercept ALT-ESC.

You *can* override UiApplication.deactivated() to know that you are getting preempted by this key sequence or the "redphone" key.
Offline  
Old 12-01-2008, 06:14 PM   #3 (permalink)
New Member
 
dpthe1st's Avatar
 
Join Date: Dec 2008
Location: Rockville, Maryland, USA
Model: 7520
PIN: N/A
Carrier: Sprint
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok... however, this will only notify me without letting me do anything about it... right? When the application I mentioned (AutoLock) is foreground, alt-esc does nothing...
Thanks for your help.
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

Vintage Aluminum Industrial Pipe Cutter V-MAC No.2-U Plumber Tool NO RESERVE
$7.77
Vintage Aluminum Industrial Pipe Cutter V-MAC No.2-U Plumber Tool   NO RESERVE pictureNEW VINTAGE VELOCETTE MAC 350cc SINGLE 1949 PETROL FUEL GAS TANK SPARES2U
$238.99
NEW VINTAGE VELOCETTE MAC 350cc SINGLE 1949 PETROL FUEL GAS TANK SPARES2U pictureVintage Mac Tools No. 200 Dial Indicator Set
$49.99
Vintage Mac Tools No. 200 Dial Indicator Set pictureMAC Tools Steel Punch SMR6 Vintage USA
$5.99
MAC Tools Steel Punch SMR6 Vintage USA pictureVintage Lot of Wrenches - Billings, MAC, TrueCraft, Pro, some unmarked - 28 pcs.
$1.25
Vintage Lot of Wrenches - Billings, MAC, TrueCraft, Pro, some unmarked - 28 pcs. picture






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