views:

315

answers:

1

Hi

Is there a cross device hard button in android that a background service can listen to and act when it is pressed/released?

Thanks

A: 

No. You can set up a BroadcastReceiver to watch for the CAMERA or MEDIA buttons, but those are not always available -- some devices do not have the CAMERA button, and the MEDIA button is for use with wired headsets.

Sorry!

CommonsWare
agreed. not all devices are created equal.
Eclipsed4utoo