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

Warner Electric Visolux Photoelectric Control Self Contained Amplifier MCS143
$120.0
Warner Electric Visolux Photoelectric Control Self Contained Amplifier MCS143  pictureHoneywell Micro Switch Proximity Control Amplifier FMA111A1-AA 7718 120 VAC
$80.0
Honeywell Micro Switch Proximity Control Amplifier FMA111A1-AA 7718 120 VAC pictureCTT Microwave Amplifier 27C3416 Rev. B 073-2726-203 + Free Priority Shipping
$350.11
CTT Microwave Amplifier 27C3416 Rev. B 073-2726-203 + Free Priority Shipping picture1Pcs Used Fanuc Servo Amplifier A06b-6102-H211 #H520 Plc Module G
$2610.99
1Pcs Used Fanuc Servo Amplifier A06b-6102-H211 #H520 Plc Module G pictureProgressive Electronics 200EP Inductive Amplifier w/ 77M Tracer & Case
$71.85
Progressive Electronics 200EP Inductive Amplifier w/ 77M Tracer & Case picture






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