Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
DevFest14 Zhuhai Android Wear CodeLab
Search
Zoom.Quiet
October 18, 2014
Technology
360
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
DevFest14 Zhuhai Android Wear CodeLab
show the base dev. flow for Android Wear
Zoom.Quiet
October 18, 2014
Transcript
15 slides
Android Wear codelab
Spawnris/⽼老⾼高 gmail
Android 5.0 Material Design ⽀支持多种设备 全新的通知中⼼心设计 ⽀支持64位ART虚拟机 Project Volta电池续航改进计划 新的API⽀支持,蓝⽛牙4.1、USB
Audio、多⼈人分享等其它特性 。。。
None
三星Gear Live智能⼿手表规格: ※ 屏幕:分辨率为320*320的1.63英⼨寸Super AMOLED屏 幕,像素密度为278ppi ※ 处理器:1.2GHz的⾼高通骁⻰龙400处理器 ※ 内存:512MB
※ 内置储存:4GB ※ 电池:300mAh,底部有⽆无线充电引脚 ※ 蓝⽛牙:蓝⽛牙 4.0 LE ※ 传感器:⼼心率传感器、陀螺仪、加速计和罗盘 ※ 三防:IP67 ※ 尺⼨寸:56mm * 38mm * 8.9mm ※ 重量:59g
Java Development Kit Android Studio 0.8.x + Android 4.4W API
20 Android Wear Emulator Android Wear App
None
adb -d forward tcp: 5601 tcp:5601
Layout Activity
manifest
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.google.android.support:wearable:+' compile
'com.google.android.gms:play-services- wearable:+' } UI Library build.gradle
System App 获取语⾳音输⼊入 除了可以⽤用语⾳音操作启动activity,还可以获取⽤用户的语⾳音输⼊入内容并且处理它们,例如将语⾳音输⼊入内容作为搜索内容或者短信发送出 去。 调⽤用startActivityForResult()启动处理语⾳音识别的activity,并且intent设置action为ACTION_RECOGNIZE_SPEECH。 并在activity中重写onActivityResult()⽅方法,来处理返回的语⾳音输⼊入结果。 private static final
int SPEECH_REQUEST_CODE = 0; 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); } protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == SPEECH_REQUEST_CODE && resultCode == RESULT_OK) { List results = data.getStringArrayListExtra( RecognizerIntent.EXTRA_RESULTS); String spokenText = results.get(0); } super.onActivityResult(requestCode, resultCode, data); } Voice
Start Device Debug Mode adb forward tcp:4444 localabstract:/adb-hub; adb connect
localhost:4444 Host: connected Target: connected adb devices adb -s localhost:4444 adb -s localhost:4444 TCP/IP: adb -e Debug With BlueTooth
compile “com.android.support:support-v4:20.0.+" import android.support.v4.App.NotificationCompat; import android.support.v4.app.NotificationManagerCompat; import android.support.v4.app.NotificationCompat.WearableExtender; Notification
Thx~
More Decks by Zoom.Quiet
See All by Zoom.Quiet
PyCon2014China-Zhuhai-high performance
zoomquiet
0
220
PyCon2014China-Zhuhai-meta programming
zoomquiet
1
190
PyCon2014China-Zhuhai-bpm.py
zoomquiet
0
160
PyCon2014China-Zhuhai-luna kv db
zoomquiet
0
170
PyCon2014China-Zhuhai-seed studio
zoomquiet
0
170
PyCon2014China-Zhuhai-Docker Registry Build By Python
zoomquiet
0
180
PyCon2014China-Zhuhai-jeff
zoomquiet
0
170
PyCon2014China-Zhuhai-pythonic front-end
zoomquiet
0
230
DevFest2014-Zhuhai-Polymer
zoomquiet
0
510
Other Decks in Technology
See All in Technology
ラクスル会社紹介資料|エンジニア向け / RAKSUL Introduction for Engineers
raksulrecruiting
0
140
目を覚ませ!僕らの認証情報が何者かに侵略されてるぞ
tkito
2
460
AIネイティブ組織の作り方。1人のPOとAIから始める、自社での実験
ama_ch
2
1.2k
Linuxネットワークスタック進化の軌跡: 過去10年の歩みと最新トレンド
orimanabu
4
750
エンタープライズ事業未経験のデータ屋、 AI時代にN回撃沈する.pdf
ryoskdara_
0
150
プロダクションコードにおける encoding/json から encoding/json/v2 へのスムーズな移行
sansantech
PRO
1
450
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
150
落とし穴にハマってわかった 開発生産性を測るときに気をつけたいこと
munakata
3
410
「任されビリティ」で引き受けて「よしなりてぃ」に頼らず任せる / Accept tasks with "makasarebility" and hand them over without relying on "yoshinarily"
pauli
1
790
IP重複は"ランディングVPC"で受け止める ― PrivateLink と Transit Gatewayによるマルチテナント接続基盤の設計
hatahata021
3
250
文書画像からの情報抽出を行うエージェントを、軌跡の正解データ無しで作れるか
sansantech
PRO
2
200
異夢同船〜異なる夢でも同じ船でなんとかする〜
fortegp05
1
520
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.4k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
GitHub's CSS Performance
jonrohan
1033
470k
How to make the Groovebox
asonas
2
2.6k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
2
540
The SEO identity crisis: Don't let AI make you average
varn
0
630
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
3k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.2k
WCS-LA-2024
lcolladotor
0
1k