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
270
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
150
PyCon2014China-Zhuhai-meta programming
zoomquiet
1
130
PyCon2014China-Zhuhai-bpm.py
zoomquiet
0
100
PyCon2014China-Zhuhai-luna kv db
zoomquiet
0
90
PyCon2014China-Zhuhai-seed studio
zoomquiet
0
92
PyCon2014China-Zhuhai-Docker Registry Build By Python
zoomquiet
0
110
PyCon2014China-Zhuhai-jeff
zoomquiet
0
81
PyCon2014China-Zhuhai-pythonic front-end
zoomquiet
0
110
DevFest2014-Zhuhai-Polymer
zoomquiet
0
410
Other Decks in Technology
See All in Technology
[MIRU25] NaiLIA: Multimodal Retrieval of Nail Designs Based on Dense Intent Descriptions
keio_smilab
PRO
1
150
地域コミュニティへの「感謝」と「恩返し」 / 20250726jawsug-tochigi
kasacchiful
0
110
【CEDEC2025】現場を理解して実現!ゲーム開発を効率化するWebサービスの開発と、利用促進のための継続的な改善
cygames
PRO
0
480
Power Automate のパフォーマンス改善レシピ / Power Automate Performance Improvement Recipes
karamem0
0
280
経験がないことを言い訳にしない、 AI時代の他領域への染み出し方
parayama0625
0
280
AIエージェントを支える設計
tkikuchi1002
12
2.5k
増え続ける脆弱性に立ち向かう: 事前対策と優先度づけによる 持続可能な脆弱性管理 / Confronting the Rise of Vulnerabilities: Sustainable Management Through Proactive Measures and Prioritization
nttcom
1
230
サイバー攻撃のシミュレーション:攻撃者の視点からみる防御のむずかしさ!AWSで試してみよう / 20250423 Kumiko Hemmi
shift_evolve
PRO
1
190
会社もクラウドも違うけど 通じたコスト削減テクニック/Cost optimization strategies effective regardless of company or cloud provider
aeonpeople
2
410
【CEDEC2025】ブランド力アップのためのコンテンツマーケティング~ゲーム会社における情報資産の活かし方~
cygames
PRO
0
140
完璧を目指さない小さく始める信頼性向上
kakehashi
PRO
0
120
大規模組織にAIエージェントを迅速に導入するためのセキュリティの勘所 / AI agents for large-scale organizations
i35_267
6
350
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Site-Speed That Sticks
csswizardry
10
730
Java REST API Framework Comparison - PWX 2021
mraible
31
8.7k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
A Modern Web Designer's Workflow
chriscoyier
695
190k
Adopting Sorbet at Scale
ufuk
77
9.5k
How to Think Like a Performance Engineer
csswizardry
25
1.8k
Gamification - CAS2011
davidbonilla
81
5.4k
RailsConf 2023
tenderlove
30
1.2k
For a Future-Friendly Web
brad_frost
179
9.8k
The Cost Of JavaScript in 2023
addyosmani
51
8.7k
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~