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

Thawte Web Server SSL Certificate, Business Validation, 1-3 years
$99.99
Thawte Web Server SSL Certificate, Business Validation, 1-3 years pictureBlack Server 3 Pocket Waitress Waist Apron Planets Name FREE Lady Pizazz
$10.0
Black Server  3 Pocket Waitress Waist Apron Planets  Name FREE Lady Pizazz pictureDymo S0929090 LabelWriter USB Enet Connect PC/Mac Print Server
$166.7
Dymo S0929090 LabelWriter USB Enet Connect PC/Mac Print Server  pictureBlack reversible Baker Man waitress server waiter waist apron 3 pockets
$11.0
Black reversible Baker Man waitress server waiter waist apron 3 pockets pictureBlack Server 3 Pocket Waitress Waist Apron Valentine Heart Name FREE Lady Pizazz
$10.0
Black Server 3 Pocket Waitress Waist Apron Valentine Heart Name FREE Lady Pizazz picture






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