Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
ayazalavi
Posts: 6
Registered: ‎01-11-2014
My Device: torch
My Carrier: telenor

BB 7: Handle trackpad click in background

I have BB OS 7 app written in Java and I would really like to have app listen to trackpad touch event in background.

Any code samples that how that might be possible?

 

Sincerely,

Ayaz Alavi

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: BB 7: Handle trackpad click in background

Not possible sorry.

Please use plain text.
New Contributor
ayazalavi
Posts: 6
Registered: ‎01-11-2014
My Device: torch
My Carrier: telenor

Re: BB 7: Handle trackpad click in background

any other touch event that I might be able to catch in background like power button press etc.?

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: BB 7: Handle trackpad click in background

[ Edited ]

You will find that support for this varies across devices and OS levels, in some devices some keys will get through to the background listener, in some devices not.  The best thing to do itswrite a small non UI (background) application that has a key listener and try the various keys on the devices.  You might find the Media keys give you the best results, but these will also be used for the Media Player. 

 

I am not aware of any touch events that get through. 

 

You may also have to factor in here whether the device is locked or not.  Keys change behavior when the device is locked. 

Please use plain text.