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
Try Android Health Connect
Search
n-seki
June 27, 2022
Technology
0
90
Try Android Health Connect
potatotips #78 iOS/Android開発Tips共有会
2022/06/22 (wed)
n-seki
June 27, 2022
Tweet
Share
More Decks by n-seki
See All by n-seki
10年もののバグを退治した話
n_seki
0
200
永続化、なに使おう?
n_seki
0
290
OS間でBluetooth処理を(一部)共通化している話
n_seki
0
100
やってみようMaven!
n_seki
0
340
Other Decks in Technology
See All in Technology
CI/CD/IaC 久々に0から環境を作ったらこうなりました
kaz29
1
200
生成AI開発案件におけるClineの業務活用事例とTips
shinya337
0
160
Tech-Verse 2025 Keynote
lycorptech_jp
PRO
0
1.2k
Yamla: Rustでつくるリアルタイム性を追求した機械学習基盤 / Yamla: A Rust-Based Machine Learning Platform Pursuing Real-Time Capabilities
lycorptech_jp
PRO
4
170
Geminiとv0による高速プロトタイピング
shinya337
0
170
米国国防総省のDevSecOpsライフサイクルをAWSのセキュリティサービスとOSSで実現
syoshie
2
1.2k
Understanding_Thread_Tuning_for_Inference_Servers_of_Deep_Models.pdf
lycorptech_jp
PRO
0
150
TechLION vol.41~MySQLユーザ会のほうから来ました / techlion41_mysql
sakaik
0
200
製造業からパッケージ製品まで、あらゆる領域をカバー!生成AIを利用したテストシナリオ生成 / 20250627 Suguru Ishii
shift_evolve
PRO
1
160
KubeCon + CloudNativeCon Japan 2025 Recap
ren510dev
1
290
ドメイン特化なCLIPモデルとデータセットの紹介
tattaka
1
300
Snowflake Summit 2025全体振り返り / Snowflake Summit 2025 Overall Review
mtpooh
2
440
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
GraphQLとの向き合い方2022年版
quramy
49
14k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.8k
Rebuilding a faster, lazier Slack
samanthasiow
82
9.1k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Gamification - CAS2011
davidbonilla
81
5.3k
Building Adaptive Systems
keathley
43
2.6k
Mobile First: as difficult as doing things right
swwweet
223
9.7k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.5k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
53k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
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 ◦ 公式のサンプルアプリ