Following the documentation here [1] to add voice menu options, is there an upper limit on the number of voice menu items that can be displayed in a Glass app? I've tried the gdk-apidemo-sample [2] and added the following to add an additional voice menu item:
- added to string.xml
<string name="menu_coder6">Foxtrot</string>
- added to voice_menu.xml
<item android:id="@+id/menu_coder6" android:title="@string/menu_coder6" />
- added to VoiceMenuActivity, the method onMenuItemSelected()
case R.id.menu_coder6: mPicture = 7; break;
and to the method getImageResource()case 7: return R.drawable.codemonkey1;
When I launched the app and reviewed the "coder" options, coder 6, Foxtrot was not displayed and there was no scrolling when panning up and down with my head to see additional voice menu options similar to when first saying "ok glass" to see a list of all installed apps on Glass.
[1] https://developers.google.com/glass/develop/gdk/voice#contextual_voice_commands