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
78
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
永続化、なに使おう?
n_seki
0
120
OS間でBluetooth処理を(一部)共通化している話
n_seki
0
83
やってみようMaven!
n_seki
0
240
Other Decks in Technology
See All in Technology
オブジェクト指向宗教史
tanakahisateru
13
12k
あらゆる商品を扱う商品データベースを再設計した話 / product db re-architecture
rince
8
3.6k
オブジェクト指向CSSが叶えたかったことと、CSSのいま / The aims of Object-oriented CSS and the current state of CSS usage
shinkufencer
11
3.6k
オブジェクトのおしゃべり大失敗 メッセージングアンチパターン集 / messaging anti-pattern collection
ytake
0
330
サービスメッシュ環境における OpenTelemetry 活用 / OpenTelemetry in Service Mesh
k6s4i53rx
2
830
Autopsy of a Cascading Outage from a MySQL Crashing Bug
jfg956
0
200
統計的学習理論読み Chapter 2
kmatsui
1
200
実務への応用例から考える 変更に強いオブジェクト指向設計 / 20240324-ooc2024
bengo4com
7
5.3k
データ化エンジニアとしての1年を振り返る
sansantech
PRO
3
250
Autify Company Deck
autifyhq
1
30k
Oracle Database で機械学習を始めよう! Oracle Machine Learning
oracle4engineer
PRO
1
140
継続的テストモデルを実現するためにスリーアミーゴスを用いた10Xでのシフトレフトの事例
nihonbuson
3
160
Featured
See All Featured
Ruby is Unlike a Banana
tanoku
95
10k
The Illustrated Children's Guide to Kubernetes
chrisshort
28
46k
Building Flexible Design Systems
yeseniaperezcruz
317
37k
Code Review Best Practice
trishagee
54
15k
Adopting Sorbet at Scale
ufuk
66
8.5k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
19
1.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
6
950
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.2k
Fireside Chat
paigeccino
19
2.6k
Being A Developer After 40
akosma
56
580k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.8k
What the flash - Photography Introduction
edds
64
11k
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 ◦ 公式のサンプルアプリ