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
96
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
240
永続化、なに使おう?
n_seki
0
310
OS間でBluetooth処理を(一部)共通化している話
n_seki
0
110
やってみようMaven!
n_seki
0
370
Other Decks in Technology
See All in Technology
M&A 後の統合をどう進めるか ─ ナレッジワーク × Poetics が実践した組織とシステムの融合
kworkdev
PRO
1
450
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
3k
SREが向き合う大規模リアーキテクチャ 〜信頼性とアジリティの両立〜
zepprix
0
450
CDKで始めるTypeScript開発のススメ
tsukuboshi
1
430
What happened to RubyGems and what can we learn?
mikemcquaid
0
300
ブロックテーマ、WordPress でウェブサイトをつくるということ / 2026.02.07 Gifu WordPress Meetup
torounit
0
180
AIエージェントを開発しよう!-AgentCore活用の勘所-
yukiogawa
0
170
FinTech SREのAWSサービス活用/Leveraging AWS Services in FinTech SRE
maaaato
0
130
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
登壇駆動学習のすすめ — CfPのネタの見つけ方と書くときに意識していること
bicstone
3
110
今日から始めるAmazon Bedrock AgentCore
har1101
4
410
Featured
See All Featured
Discover your Explorer Soul
emna__ayadi
2
1.1k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
320
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Documentation Writing (for coders)
carmenintech
77
5.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.6k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
120
The agentic SEO stack - context over prompts
schlessera
0
640
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
450
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 ◦ 公式のサンプルアプリ