Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
DevFest14 Zhuhai Android Wear CodeLab
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Zoom.Quiet
October 18, 2014
Technology
340
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
More Decks by Zoom.Quiet
See All by Zoom.Quiet
PyCon2014China-Zhuhai-high performance
zoomquiet
0
200
PyCon2014China-Zhuhai-meta programming
zoomquiet
1
180
PyCon2014China-Zhuhai-bpm.py
zoomquiet
0
150
PyCon2014China-Zhuhai-luna kv db
zoomquiet
0
150
PyCon2014China-Zhuhai-seed studio
zoomquiet
0
150
PyCon2014China-Zhuhai-Docker Registry Build By Python
zoomquiet
0
170
PyCon2014China-Zhuhai-jeff
zoomquiet
0
160
PyCon2014China-Zhuhai-pythonic front-end
zoomquiet
0
180
DevFest2014-Zhuhai-Polymer
zoomquiet
0
480
Other Decks in Technology
See All in Technology
PLaMo 3.0 Primeの事後学習
pfn
PRO
0
270
LLMリーダーボードアップデートに向けたAgentic Math_SWEのトレースについて
nejumi
0
210
個人OSSが、机の上から世界に広がるまでの話
shinyasaita
1
340
攻撃と防御で学ぶAI時代のプロダクトセキュリティ演習
recruitengineers
PRO
1
390
修正PRを食べてレビュースキルが賢くなる:Claude Codeによる自己改善サイクル
yuyaumetsu
4
1.2k
PLaMoを毎日の開発で使い育てていく
pfn
PRO
0
180
Atlassian Cloudサポート業務でのAIエージェント活用事例
smt7174
0
430
【CEDEC2026】『ウマ娘 プリティーダービー』 英語版のキャラクターの方言や口調をローカライズするための創造的アプローチ
cygames
PRO
1
180
『三匹の子ぶた』から学ぶネットワークセキュリティの昔と今 / Network Security: Then and Now Through the Lens of The Three Little Pigs
nttcom
1
1.7k
Retriever と Reranker、結局どうする?
kazuaki
2
670
AIがAPIを書く時代に、私たちは何を設計すべきか
nagix
0
210
データ組織の転換期 一足飛びしない段階的戦略
leveragestech
PRO
0
150
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
520
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
160
Game over? The fight for quality and originality in the time of robots
wayneb77
1
240
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
790
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
119
120k
The Pragmatic Product Professional
lauravandoore
37
7.4k
Into the Great Unknown - MozCon
thekraken
41
2.7k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
The SEO identity crisis: Don't let AI make you average
varn
0
530
Java REST API Framework Comparison - PWX 2021
mraible
34
9.6k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
Transcript
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~