BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-25-2013, 05:44 AM   #1
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default Background application that listens on keypad.

Please Login to Remove!

Hello everyone,
I am trying to create an application targetting 5.0 devices, that will enable the backlight when a sequence of characters are typed on nowhere, but keypad.

Any gueses how to implement a listener in an application like that?

Thanks in advance.
__________________
having new s for developers!!!
Offline  
Old 02-25-2013, 03:59 PM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: Background application that listens on keypad.

Only the application that owns the currently focused UI component gets the keystrokes.

There is no global keystroke listener for the Java API's.
Offline  
Old 03-02-2013, 12:13 AM   #3
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default Re: Background application that listens on keypad.

Ok, it could be convenience key that is manually set by user as a shortcut to my application..
Or event thrown by accelerometer from a background service, which could activate my application..
Let me see this can happen.
__________________
having new s for developers!!!
Offline  
Old 03-02-2013, 12:13 AM   #4
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default Re: Background application that listens on keypad.

Accelerator is happening, but you have to shake hard!!. Otherwise I would need my application to be notified (it runs on autostart, so it is already running) when the hot (convenience) key is pressed.

I think of using another (secondary) application that notifies the main (backlight) application (and that secondary application starts on hotkey, notifies and closes), back light is switched on in an event. Then again this hot key is pressed, the main application is notified, to turn it off, and the secondary application closes.

There could be a direct way of doing it. I mean: do I need this secondary application?
__________________
having new s for developers!!!
Offline  
Old 03-12-2013, 05:44 AM   #5
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default Re: Background application that listens on keypad.

I have done the application and it is fabulous as stated above. Thanks.
__________________
having new s for developers!!!
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: Background application that listens on keypad.
Thread Thread Starter Forum Replies Last Post
New App: RunningIcon monitor background apps Smiley8 Aftermarket Software 0 01-07-2011 01:06 PM
Calendar not downloading at activation: arronpitman BES Admin Corner 4 05-13-2009 02:34 AM
Application running in background making Phone navigation slow satyam Developer Forum 4 06-04-2008 09:22 AM
How to run my application in background? siqiabc Developer Forum 3 10-31-2007 05:17 AM
Step-by-step tutorial on creating custom BlackBerry device themes! d_fisher BlackBerry Themes 0 10-17-2006 07:30 AM


MSA ALTAIR 4X multi gas Meter Monitor detector, No Charger AS IS picture

MSA ALTAIR 4X multi gas Meter Monitor detector, No Charger AS IS

$150.00



MSA ALTAIR 4XR picture

MSA ALTAIR 4XR

$600.00



MSA Altair 5X Gas Detector Meter *Recently Calibrated and 30 Day Warranty* picture

MSA Altair 5X Gas Detector Meter *Recently Calibrated and 30 Day Warranty*

$795.00



MSA altair 4X multi gas meter Monitor detector, O2,H2S,CO,LEL Charger calibrated picture

MSA altair 4X multi gas meter Monitor detector, O2,H2S,CO,LEL Charger calibrated

$340.00



MSA 24 Month Altair Hydrogen Sulfide Gas Monitor/Detector (H2S) Activate By 5/23 picture

MSA 24 Month Altair Hydrogen Sulfide Gas Monitor/Detector (H2S) Activate By 5/23

$73.26



MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2) picture

MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2)

$295.00







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