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


Oktis - 2 Portable Fuel Analyzer Tester Meter Octane Number Gasoline Petrol picture

Oktis - 2 Portable Fuel Analyzer Tester Meter Octane Number Gasoline Petrol

$179.99



WIFI Audio Voice Recorder Live Real-Time Audio Thru App | Charger & 32GB SD Card picture

WIFI Audio Voice Recorder Live Real-Time Audio Thru App | Charger & 32GB SD Card

$129.00



New Sealed AB 2080-MEMBAK-RTC Memory Backup, Data Log, Recipe ,High Accuracy RTC picture

New Sealed AB 2080-MEMBAK-RTC Memory Backup, Data Log, Recipe ,High Accuracy RTC

$280.92



GQ EMF-390 3in1 multi-field Electromagnetic EMF Meter 5G RF Detector Data logger picture

GQ EMF-390 3in1 multi-field Electromagnetic EMF Meter 5G RF Detector Data logger

$119.90



New Factory Sealed AB 1756-L61 SER B ControlLogix 2MB Memory Controller 1756 L61 picture

New Factory Sealed AB 1756-L61 SER B ControlLogix 2MB Memory Controller 1756 L61

$304.72



Dental LED Implant Motor System Brushless +20:1 Handpiece /Electric Micro Motor picture

Dental LED Implant Motor System Brushless +20:1 Handpiece /Electric Micro Motor

$274.94







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