title: Google Glass Wildcard Voice Command
body: <p>I have voice commands in my Google Glass app working, with a <code>R.id.add_item</code> and <code>R.id.remove_item</code> for a list-type app. However, I would like to be able to let the user say, "Add Item, Apple". I cannot find any information on how to do this. </p>
  
  <p>My <code>main.xml</code> file looks like this:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item android:id="@+id/add_item"
      android:title="Add Item" /&gt;
  &lt;item android:id="@+id/remove_item"
      android:title="Remove Item" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>And my <code>onMenuItemSelected</code> is</p>
  
  <pre><code>@Override
  public boolean onMenuItemSelected(int featureId, MenuItem item) {
      if (featureId == WindowUtils.FEATURE_VOICE_COMMANDS || featureId ==  Window.FEATURE_OPTIONS_PANEL) {
          switch (item.getItemId()) {
              case R.id.add_item:
                  break;
              case R.id.remove_item:
                  break;
          }
          return true;
      }
      return super.onMenuItemSelected(featureId, item);
  }
  </code></pre>
  
  <p>I don't know where I would add this code, or how I would do so. Thanks for your help.</p>