05-03-2010 05:58 PM
Wondering if anyone can point me in the right direction.
I was wondering, if it is possible to consume input while an app is in the background?
If so how would i go about doing this? (similar to the way that the built in media player consumes input from the background)
I ask because i am also working on a media player and would like to be able to control things from the background.
Really appreciate any help you folks can give me. Thanks!
05-03-2010 06:49 PM
Input from the background is not possible... to a point. In 5.0 RIM added a Media key listener located in the "net.rim.device.api.media" namespace.
It will take input if your app was the last running multi-media app, if the user opens a different multi-media app and doesn't close it then your app will not receive media key inputs.
05-04-2010 07:50 AM
Have you heard of the application called Blackbook for BlackBerry by mblware?
They have managed it so that a key combination from the homescreen initiates their app and it supports 4.5+
Surely there must be a way?
05-04-2010 08:31 AM
That is using a convenience key - different deal.
The app is not listening for the key, the system is. You register the key to the app and the system starts the app when the key is pressed.