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

(J06) NEW Genuine OEM Dell 5313118052F0 Generic M-M 6ft Audio Cable Assembly
$25.0
(J06) NEW Genuine OEM Dell 5313118052F0 Generic M-M 6ft Audio Cable Assembly pictureNEW VESA ADAPTER PLATE FOR DELL E-SERIES MONITORS - OEM
$9.99
NEW VESA ADAPTER PLATE FOR DELL E-SERIES MONITORS - OEM pictureGenuine OEM New Open Box Dell G20VW Magenta Toner Cartridge; E525 Series
$39.98
Genuine OEM New Open Box Dell G20VW Magenta Toner Cartridge; E525 Series pictureDELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL
$216.18
DELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL pictureOriginal Chunghwa 15" CLAA150XP01QL A+ LCD Screen Display OEM Dell E157FPTe
$45.0
Original Chunghwa 15






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