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


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

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 O2 SINGLE GAS DETECTOR 10071364 picture

MSA ALTAIR O2 SINGLE GAS DETECTOR 10071364

$217.55



MSA Altair 5X  picture

MSA Altair 5X

$750.00



New Open Box MSA Altair 4XR Multigas Detector picture

New Open Box MSA Altair 4XR Multigas Detector

$579.99



MSA Altair 5X Multi-Gas Detector picture

MSA Altair 5X Multi-Gas Detector

$850.00



MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector picture

MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector

$200.00



Altair2X Co Instrument CO Gas Detector picture

Altair2X Co Instrument CO Gas Detector

$399.99







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