More Related Content
Similar to [MobCamp 2014] Android Wear and Google Glass (20)
More from Douglas Drumond (11)
[MobCamp 2014] Android Wear and Google Glass
- 1. Android Wear & Google
Glass
Douglas Drumond
self@douglasdrumond.com
+DouglasDrumond
- 23. 1 Dia de uso típico
Resolução 640x360
Processor Dual-Core
1 GB RAM
16 GB Total
12 GB Disponíveis
5 MP - 720p video
Automatic Cloud-Sync
Android 4.4.2 KitKat
Peso: 50g
- 25. How can I hear?
Bone Conduction Transducer
- 39. // Key for the string that's delivered in the action's intent
private static final String EXTRA_VOICE_REPLY = "extra_voice_reply";
!
String replyLabel = getResources().getString(R.string.reply_label);
!
RemoteInput remoteInput = new RemoteInput.Builder(EXTRA_VOICE_REPLY)
.setLabel(replyLabel)
.build();
private CharSequence getMessageText(Intent intent) {
Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);
if (remoteInput != null) {
return remoteInput.getCharSequence(EXTRA_VOICE_REPLY);
}
}
return null;
}