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

80pcs 25V470uF 25V 10x12.5mm SANYO CA Low Impedance Capacitor
$9.49
80pcs 25V470uF 25V 10x12.5mm SANYO CA Low Impedance Capacitor pictureFluke 845AR High Impedance DC Voltmeter & Null Detector As Is For Repair
$179.99
Fluke 845AR High Impedance DC Voltmeter & Null Detector As Is For Repair picture20pcs 16V470uF 16V 10x10mm JAMICON TL Low impedance capacitor
$3.39
20pcs 16V470uF 16V 10x10mm JAMICON TL Low impedance capacitor picture300pcs 10V680uF 10V 8x11.5mm SAMXON GF High ripple Low Impedance capacitor
$26.29
300pcs 10V680uF 10V 8x11.5mm SAMXON GF High ripple Low Impedance capacitor picture100pcs 10V1000uF 8x20mm TAICON 10V Low Impedance capacitor
$11.09
100pcs 10V1000uF 8x20mm TAICON 10V Low Impedance  capacitor picture






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