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
Try Android Health Connect
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
n-seki
June 27, 2022
Technology
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Try Android Health Connect
potatotips #78 iOS/Android開発Tips共有会
2022/06/22 (wed)
n-seki
June 27, 2022
More Decks by n-seki
See All by n-seki
2App, 1Repository
n_seki
0
52
10年もののバグを退治した話
n_seki
0
270
永続化、なに使おう?
n_seki
0
340
OS間でBluetooth処理を(一部)共通化している話
n_seki
0
110
やってみようMaven!
n_seki
0
390
Other Decks in Technology
See All in Technology
積み重なった技術負債への挑戦 〜初手としての全社ゴト化〜
techtekt
PRO
0
1.4k
幾何アルゴリズムで なめらかなピン操作を / iOSDC Japan 2026 / smoothpin
kazumanagano
0
360
AIエージェントの権限管理 3: Agentic RAG の Fine grained access control 編
ren8k
0
140
What the customer really needed
kawaguti
PRO
3
210
なぜ「決定性」が 決定的に重要なのか? Durable Execution 基盤の数理的理解 #serverlessjp / ServerlessDays Tokyo 2026
ytaka23
3
900
AIエージェントを最高のパートナーに育てる方法|評価と判断軸を育てる5つのステップ
koichiaoki
1
150
俺の仕事は AIに奪われないし、たぶんその BIも要らない
hikaruri
0
520
新機種発売前に見直そう!端末移行で再ログインが要るアプリ・要らないアプリは何が違うのか 〜シームレスに再開できる設計と実装〜
zozotech
PRO
0
220
Genieを崇めよ
kameitomohiro
0
170
ユーザー価値を届け続けるためにウォンテッドリーが大切にしている文化
kotaminato
0
180
絵ではじめるKubernetesセキュリティ
aoi1
4
680
SREへの勘違いに気づいた後の話
tomodakengo
0
110
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
410
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Writing Fast Ruby
sferik
630
63k
Designing for Performance
lara
611
70k
Designing for Timeless Needs
cassininazir
1
480
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
990
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Embracing the Ebb and Flow
colly
88
5.2k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
870
Optimizing for Happiness
mojombo
378
71k
Transcript
Health Connectに 触れてみる Naoto Uwaseki (n-seki) potatotips #78 iOS/Android開発Tips共有会 2022/06/22
(wed)
自己紹介 Uwaseki Naoto ヘイ株式会社 STORES 決済 Android エンジニア @n_seki_ (Twitter)
@n-seki (GitHub)
Health Connectとは • Google I/O 中に1.0.0が公開された
Health Connectとは • 健康やフィットネスに関するデータの読み書きのインターフェー スを提供するAPIであり、プラットフォーム(開発者視点) • プライバシー管理と、保存・共有しているデータへの統一され たアクセスを可能とする(ユーザー視点)
Health Connectとは
Health Connectとは Health Connect SDK 健康やフィットネスに関する データの読み書きが可能な SDK
Health Connectとは Health Connectの実体 APIの実装と権限管理など
Health Connectとは Health Connect SDK を組み 込むアプリ
Health Connect APK • Heath Connect APKはPlay Storeで配信されている • 現在はオープンβ版として公開されているので、インストールす
るにはテスタープログラムに登録する必要がある • Google I/Oの「Introducing new APIs for health and fitness in Health Connect by Android」では「将来的にはPreinstallさ れる」と言われていました
Health Connect APKとは • Heath Connect APKはPlay Storeで配信されている • 現在はオープンβ版として公開されているので、インストールす
るにはテスタープログラムに登録する必要がある • Google I/Oの「Introducing new APIs for health and fitness in Health Connect by Android」で「将来的にはPreinstallされ る」と言われていました
準備 • 公式ドキュメントの通りにやればOK • テスター登録してHealth Connect APKもインストール • 1.0.0-alpha02 が6/1にリリースされている
準備(Permission) • Health Connectで読み書きするデータの種類を宣言する
準備(Permission) • Android Manifestでmeta-dataとして宣言
実装(Permission)
実装(Permission)
実装(Read/Write)
実装(Write)
実装(Write)
実装(Read)
実装(Read)
まとめ • 読み書きはもちろん、集約のインターフェースも提供されてい る • 公式ドキュメントがとても充実している • Health Connectで扱うデータはセンシティブなものなので、と り扱いには注意
References • https://developer.android.com/guide/health-and-fitness/health-connect ◦ 公式ドキュメント • https://www.youtube.com/watch?v=d14GVcnbTeo ◦ Google I/Oの動画
• https://android-developers.googleblog.com/2022/05/introducing-health-conne ct.html ◦ Android Developer Blog • https://github.com/android/health-samples/tree/main/health-connect/HealthCo nnectSample ◦ 公式のサンプルアプリ