title: Losing Activity focus after Contextual Voice Commands
body: <p>I am trying to implement contextual voice commands in my Glass application described in the  <a href="https://developers.google.com/glass/develop/gdk/voice#contextual_voice_commands" rel="nofollow">documentation</a>.</p>
  
  <p>I have a FrameLayout inside my layout, and in my activity I'm implementing OnKeyDown in order to recognize taps. However, when the user says "Ok glass" and then selects one of the available commands, the same activity is returned, but unresponsive (I can't even close the app by sliding down).</p>
  
  <p>I tried to use requestFocus() on the FrameLayout in a couple of different ways, but it did not have any effects. How could I have the focus back without having to restart the activity?</p>
  
  <p>Essentially, this is the code I have so far for the main activity:</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      public static String TAG = "DummyProject::MainActivity";
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          getWindow().requestFeature(WindowUtils.FEATURE_VOICE_COMMANDS);
  
          setContentView(R.layout.activity_main);
      }
  
      @Override
      public boolean onCreatePanelMenu(int featureId, Menu menu) {
          if (featureId == WindowUtils.FEATURE_VOICE_COMMANDS) {
              getMenuInflater().inflate(R.layout.main, menu);
              return true;
          }
  
          return super.onCreatePanelMenu(featureId, menu);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.layout.main, menu);
          return true;
      }
  
      @Override
      public boolean onMenuItemSelected(int featureId, MenuItem item) {
          if (featureId == WindowUtils.FEATURE_VOICE_COMMANDS) {
              switch (item.getItemId()) {
              case R.id.awesome:
                  Log.i(TAG, "Selected!");
                  break;
              default:
                  return true;
              }
  
              return true;
          }
  
          return super.onMenuItemSelected(featureId, item);
      }
  
      @Override
      public boolean onKeyDown(int keycode, KeyEvent event) {
          if(keycode == KeyEvent.KEYCODE_DPAD_CENTER) {
              Log.i(TAG, "tap!");
              return true;
          }
  
          return super.onKeyDown(keycode, event);
      }
  }
  </code></pre>
  
  <p>For this example, onKeyDown does not get called after I select any of the "ok glass" menu options.</p>
  
  <p>Thank you in advance.</p>