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
Zoom.Quiet
October 18, 2014
Technology
0
240
DevFest14 Zhuhai Android Wear CodeLab
show the base dev. flow for Android Wear
Zoom.Quiet
October 18, 2014
Tweet
Share
More Decks by Zoom.Quiet
See All by Zoom.Quiet
PyCon2014China-Zhuhai-high performance
zoomquiet
0
130
PyCon2014China-Zhuhai-meta programming
zoomquiet
1
97
PyCon2014China-Zhuhai-bpm.py
zoomquiet
0
76
PyCon2014China-Zhuhai-luna kv db
zoomquiet
0
83
PyCon2014China-Zhuhai-seed studio
zoomquiet
0
58
PyCon2014China-Zhuhai-Docker Registry Build By Python
zoomquiet
0
73
PyCon2014China-Zhuhai-jeff
zoomquiet
0
55
PyCon2014China-Zhuhai-pythonic front-end
zoomquiet
0
83
DevFest2014-Zhuhai-Polymer
zoomquiet
0
350
Other Decks in Technology
See All in Technology
顧客が本当に必要だったもの - パフォーマンス改善編 / Make what is needed
soudai
24
6.8k
ガチ勢によるPipeCD運用大全〜滑らかなCI/CDを添えて〜 / ai-pipecd-encyclopedia
cyberagentdevelopers
PRO
3
210
Aurora_BlueGreenDeploymentsやってみた
tsukasa_ishimaru
1
120
LeSSに潜む「隠れWF病」とその処方箋
lycorptech_jp
PRO
2
120
ユーザーの購買行動モデリングとその分析 / dsc-purchase-analysis
cyberagentdevelopers
PRO
2
100
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
9
120k
pandasはPolarsに性能面で追いつき追い越せるのか
vaaaaanquish
4
4.6k
CAMERA-Suite: 広告文生成のための評価スイート / ai-camera-suite
cyberagentdevelopers
PRO
3
270
visionOSでの空間表現実装とImmersive Video表示について / ai-immersive-visionos
cyberagentdevelopers
PRO
1
110
VPC間の接続方法を整理してみた #自治体クラウド勉強会
non97
1
840
신뢰할 수 있는 AI 검색 엔진을 만들기 위한 Liner의 여정
huffon
0
340
2024-10-30-reInventStandby_StudyGroup_Intro
shinichirokawano
1
630
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Designing Experiences People Love
moore
138
23k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Optimizing for Happiness
mojombo
376
69k
Making Projects Easy
brettharned
115
5.9k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
14
1.9k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Imperfection Machines: The Place of Print at Facebook
scottboms
264
13k
For a Future-Friendly Web
brad_frost
175
9.4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
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~