These are the slides from my talk 'Hello again, Android Wear' which I held at Mobiconf 2015.
Today it is about one year ago that the first Android Wear powered devices were launched at the Google I/O 2014 in San Francisco. Until now only a handful of popular applications have been built that are capable of tapping the full potential of Android Wear - I want to encourage you to get the maximum out of the immense pool of possibilities that provides Android Wear. In my following talk I am going to give you an overview of the Android Wear ecosystem, take you with me on a deep dive into the world of wearable design and explain in a short introduction on how to build awesome applications which run natively on your watch.
22. // Extend the notification builder with the second page
Notification notification = notificationBuilder
.extend(wearableExtender)
.build();
WearableExtender
NotificationService.java
Simple.
41. private static final int SPEECH_REQUEST_CODE = 0;
// 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 the speech text
startActivityForResult(intent, SPEECH_REQUEST_CODE);
}
Free-form Speech Input
MainActivity.java