02-24-2009 07:12 PM
You receive a globalevent whenever a sound profile is changed, but what is the profile selected we cannot retrive.
I debiged on simulator & found that we receive object of Profile calss which is not accesible to normal java applications so we cannot use it.
02-25-2009 02:20 AM
In order to use GlobalEventListener, you can post a globalEvent from a application to any other other application. You can post this global event to all applications or to any specific application then that specific application will recieve global event and perform anything as required.
To achieve this you need to implement GlobalEventListener in recieving app with the use of these methods addGlobalEventListener() and eventOccurred().
02-25-2009 05:18 AM
I have tested in simulator to capture globalevents and not is possible detect mute keypress and also +/- volume key. I not understand how this buttons can comunicate with system.
02-25-2009 06:53 AM
To trace any key event you need to implement keyPadListener and then you can detect any particular key using keypad
02-25-2009 12:25 PM
Sorry to say but if your app is always running background app (i.e. your app extends Application not uiApplication) then you can't trace key events.
09-29-2009 06:37 AM
It is possible to take control over mute key event when the app is running in background and without using jde 5.0.
I do not know how, but there is a blackberry app media player named "Mobiola xPlayer" that works over several blackberry devices, pearl, storm, etc, (so the S.O is not 5.0), and the mute key works perfectly when the app is in background.
How is it done? I do not know, but I would like to know if is possible.
11-08-2010 09:46 PM
Hey. So is it possible to handle key presses for all apps and act on them? Just confirming, globaleventlistener is not for such events and the keylistener looks like one-app...