Can Android Wearable apps detect the power button as a KeyEvent?
Can Android Wearable apps detect the power button as a KeyEvent or by other means? I would like to run a listener service to detect the wearable power button. I tried this but no log corresponding to a KeyEvent occurred. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { Log.e(">>>>>>", "FindPhoneActivity event "+event); if (keyCode == KeyEvent.KEYCODE_POWER) { // Do something here... Log.e(">>>>>>", "FindPhoneActivity onKeyDown"); //event.startTracking(); // Needed to track long presses return true; } return super.onKeyDown(keyCode, event); } I have also experimented with two