Hey guys,
Is there a way to capture a key event from the Menu button using an Intent or BroadcastReceiver?
Basically I want my app's Service to be activated when the Menu key is pressed.
Thanks
Hey guys,
Is there a way to capture a key event from the Menu button using an Intent or BroadcastReceiver?
Basically I want my app's Service to be activated when the Menu key is pressed.
Thanks
Just check the KeyDownEvent if the Menu Button was pressed: http://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyDown%28int,%20android.view.KeyEvent%29