We wire in the handler for the selection of the AddTodoItem
activity:
@Override public void onClick(WearableListView.ViewHolder viewHolder) { Log.i(TAG, "Clicked list item" + viewHolder.getAdapterPosition()); if (viewHolder.getAdapterPosition() == 0) { Intent intent = new Intent(this, DayOfYearActivity.class); startActivity(intent); } else if (viewHolder.getAdapterPosition() == 1) { Intent intent = new Intent(this, OnThisDayActivity.class); startActivity(intent); } else if (viewHolder.getAdapterPosition() == 2) { displaySpeechRecognizer(); } //Create an intent that can start the Speech Recognizer activity private void displaySpeechRecognizer() { Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); // Start the activity, the intent will be populated with...