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

[MOPCON 2014] Google Glass 開發經驗分享

Johnny Sung
October 26, 2014

[MOPCON 2014] Google Glass 開發經驗分享

全台灣大約只有20隻!從Google眼鏡問世,開始出現了「穿戴式」的應用的分類 想知道Google眼鏡要怎麼開發?會有什麼樣有趣的應用?實作Glassware上架有什麼重點?一一報給您知!
大綱:
- Google glass 的簡介
- Mirror API 初探
- 10分鐘快速上手 Glass Development Kit (GDK) 開發
- Glassware上架審核重點
- Google glass 與 Android wear 的異同之處

議程介紹:
http://mopcon.org/2014/session.php

Johnny Sung

October 26, 2014
Tweet

More Decks by Johnny Sung

Other Decks in Technology

Transcript

  1. Agenda • Google Glass 介紹 • Mirror API 初探 •

    快速上⼿手 Glass Development Kit (GDK) 開發 • Glassware上架審核重點 • Google glass 與 Android wear 的異同之處
  2. Muki Wu (吳姿穎) • Wordpress 課程 • RWD課程 • ⽂文具⼿手帳

    MUKI space* 台灣知名部落客 (因為出賣朋友只好⼯工商⼀一下...)
  3. • Periodic notifications & Static Card
 (Push notifications) • RESTful

    API • Choose a favorite language you like Mirror API Go Java .Net PHP Python Ruby
  4. Mirror API - OAuth Settings • Google Developers Console •

    勾選 Mirror API • 設定OAuth Client ID
  5. Tips for Mirror API (PHP) • Edited: $api_simple_key 不需要了 •

    沒有 DNS 域名? ⽤用 DNS 反解吧 $ nslookup 114.42.21.220 Server: 10.100.83.253 Address: 10.100.83.253#53 Non-authoritative answer: 220.21.42.114.in-addr.arpa name = 114-42-21-220.dynamic.hinet.net. http://114-42-21-220.dynamic.hinet.net/
  6. Mirror API - OAuth Settings • APPLICATION TYPE • Web

    application • AUTHORIZED JAVASCRIPT ORIGINS • http://114-42-21-220.dynamic.hinet.net/ • AUTHORIZED REDIRECT URI • http://114-42-21-220.dynamic.hinet.net/mirrorapi/ oauth2callback.php
  7. Glass Development Kit Sneak Peek
 4.0.3 (API 15) Glass Development

    Kit Preview 4.4.2 (API 19) Android 4.4.2 KitKat (API 19) Android 5.0
  8. Glass development • Glass Development Kit (GDK) • Ongoing task

    & Live Card (活動卡⽚片,即時卡⽚片) • Low Frequency Rendering • High Frequency Rendering • Immersion (沉浸式體驗,獨佔式體驗)
  9. <activity android:name=".MainActivity" android:label=“@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" />

    </intent-filter> </activity> <activity android:name=".MainActivity" android:immersive="true" > <intent-filter> <action android:name="com.google.android.glass.action.VOICE_TRIGGER" /> </intent-filter> <meta-data android:name="com.google.android.glass.VoiceTrigger" android:resource="@xml/voice_trigger_start" /> </activity>
  10. public class HelloActivity extends Activity { private TextView sampleTextview; @Override

    protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.card_main); sampleTextview = (TextView) findViewById(R.id.sample_txt); } } As same as android :D
  11. VoiceTriggers.Command • add an event • calculate • call me

    a car • capture a panorama • check me in • check this out • control my car • control my home • explore nearby • explore the stars • find a bike • find a dentist • find a doctor • find a hospital • find a passage • find a place • find a place to stay • find a product • find a recipe • find a video • find a website • find reviews • find the exchange rate • find the price • flip a coin • give me feedback • help me sign in • keep me awake • learn an instrument • learn a song Pick one you like !
  12. Keypad Swipe down translates to KEYCODE_BACK. A camera button press


    translates to KEYCODE_CAMERA. Tap translates to KEYCODE_DPAD_CENTER.
  13. • SWIPE_DOWN • TWO_SWIPE_DOWN • SWIPE_LEFT • TWO_SWIPE_LEFT • SWIPE_RIGHT

    • TWO_SWIPE_RIGHT • SWIPE_UP • TWO_SWIPE_UP Gestures • TAP • TWO_TAP • THREE_TAP • LONG_PRESS • TWO_LONG_PRESS • THREE_LONG_PRESS
  14. • 05.23 收到送件 (BatteryLevel) • 05.29 語⾳音指令通過
 ( Show the

    battery level -> Check the battery ) • 06.11 改名叫 Battery checker 更新送審 送審時間表
  15. • 06.27 初步審查通過,開啟 Issue Tracker • 07.17 追加 Issue •

    07.30 修完全部的 Issue • 08.11 從MyGlass看到 Developer only • 08.26 Ready for launch • 08.29 正式 Release
  16. Product descriptions • A simple app that showed the current

    battery level of glass. Unlike the percentage in settings page, this app will response with voice directly. Hopes you will like it! Glassware Glass
  17. Product descriptions • 區分 Android app vs. the Glassware. •

    Use Glass trademark • Glass™ • Glass is a trademark of Google Inc.
  18. Glass vs Wear • ⼀一個是眼鏡 • Wifi / Bluetooth 4.0

    • 相機 • 離線語⾳音辨識 • 可獨⽴立作業 • LiveCard • ⼀一個是⼿手錶 • Bluetooth only • ⼼心跳檢測 • 震動 • ⼿手機螢幕的延伸 • Notifications