Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android Ware intro by GDG HK

Zoom.Quiet
September 18, 2014

Android Ware intro by GDG HK

for 141018 DevFest Zhuhai

Zoom.Quiet

September 18, 2014
Tweet

More Decks by Zoom.Quiet

Other Decks in Technology

Transcript

  1. PendingResult<SendMessageResult> sendMessage(GoogleApiClient client, String nodeId, String action, byte[] data); Method

    public interface MessageListener { void onMessageReceived(MessageEvent messageEvent); } Listener Message #androidwear
  2. PendingResult<DataItemResult> putDataItem(GoogleApiClient client, PutDataRequest request); PendingResult<DataItemResult> getDataItem(GoogleApiClient client, Uri uri);

    Methods public interface DataListener { void onDataChanged(DataEventBuffer dataEvents); } Listener Data #androidwear
  3. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.google.android.support:wearable:+' compile

    'com.google.android.gms:play-services-wearable:+' } build.gradle #androidwear
  4. #androidwear • BoxInsetLayout • Card Fragment • CircledImageView • ConfirmationActivity

    • DismissOverlayView • GridViewPager • GridPagerAdapter • FragmentGridPagerAdapter • WatchViewStub
  5. #androidwear • BoxInsetLayout • Card Fragment • CircledImageView • ConfirmationActivity

    • DismissOverlayView • GridViewPager • GridPagerAdapter • FragmentGridPagerAdapter • WatchViewStub
  6. #androidwear • BoxInsetLayout • Card Fragment • CircledImageView • ConfirmationActivity

    • DismissOverlayView • GridViewPager • GridPagerAdapter • FragmentGridPagerAdapter • WatchViewStub
  7. #androidwear • BoxInsetLayout • Card Fragment • CircledImageView • ConfirmationActivity

    • DismissOverlayView • GridViewPager • GridPagerAdapter • FragmentGridPagerAdapter • WatchViewStub
  8. #androidwear • Call a car/taxi • Take a note •

    Set alarm • Set timer • Start/Stop a bike ride • Start/Stop a run • Start/Stop a workout • Show heart rate • Show step count
  9. private void displaySpeechRecognizer() { Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,

    RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); startActivityForResult(intent, SPEECH_REQUEST_CODE); } Speech Recognizer #androidwear
  10. What’s next? Getting Started with Android Wear developer.android.com/wear Design for

    Android Wear developer.android.com/design/wear #androidwear