title: How do you customise Glass contextual voice menu in an immersion *after* its initial setup?
body: <p>I've successfully populated the contextual voice menu of my glassware immersion but I want to be able to change the menu <em>after</em> the initial set up in onPreparePanel() or onCreatePanelMenu() as described here: <a href="https://stackoverflow.com/questions/24386276/programmatically-populated-contextual-ok-glass-menu">Programmatically populated contextual &quot;ok glass&quot; menu</a>.</p>
  
  <p>Ideally one of the callbacks would be called after receiving the 'ok, glass' voice command but as far as I can tell, none of them are. Outcome, you're stuck with the version of the voice commands menu as it was the first time you cam into the activity.</p>
  
  <p>So far, the only hack that's come close was when I pulled the GlassVoice.apk off the device and set up a manual VoiceListener (as discussed here: <a href="https://stackoverflow.com/questions/21168267/glass-voice-command-nearest-match-from-given-list">Glass voice command nearest match from given list</a>). When the voice command is detected an onVoiceCommand is called, I try to force a refresh of the menu by calling invalidateOptionsMenu() (no effect) or getWindow().invalidatePanelMenu(WindowUtils.FEATURE_VOICE_COMMANDS). This second one looks like it tries to pull up the menu but then instantly hides it again.</p>
  
  <p>How can I dynamically change the contextual voice menu later on in the lifetime of the activity?</p>