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


4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts picture

4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts

$49.99



Phillips Advance ICF-2S26-H1-LD Electronic Compact Fluorescent Ballast 12 Pack picture

Phillips Advance ICF-2S26-H1-LD Electronic Compact Fluorescent Ballast 12 Pack

$250.00



Lot Of 3 Philips Advance ICN-2S110-SC Ballast ICN2S110SC picture

Lot Of 3 Philips Advance ICN-2S110-SC Ballast ICN2S110SC

$45.99



Ballast for Induction Lamp 200W - 120V /277V - New / Open Box - Ark Lighting picture

Ballast for Induction Lamp 200W - 120V /277V - New / Open Box - Ark Lighting

$22.22



Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12 picture

Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12

$18.79



Fulham Pony Solid State electronic ballast picture

Fulham Pony Solid State electronic ballast

$15.00







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