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
56
10年もののバグを退治した話
n_seki
0
280
永続化、なに使おう?
n_seki
0
340
OS間でBluetooth処理を(一部)共通化している話
n_seki
0
110
やってみようMaven!
n_seki
0
390
Other Decks in Technology
See All in Technology
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
930
遠藤な_めぐろLT #38 「社内のAI活用推進」@麻布台_20261009
endonanana
0
130
[JAWS-UG彩の国埼玉#12]そろそろ準備する?re:Invent2026をやさしく解説 / reinvent2026-sainokuni
sh_fk2
1
350
しろおびから始める!ログ活用の第一歩
shumei_ito
0
950
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
640
re:Invent初参加で変わったこと、2回目にやってみたいこと(JAWS-UG彩の国埼玉 #12)
mhrtech
2
230
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
440
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
290
継続的なAIコスト最適化
bgpat
1
350
JAWS-UGグッズ職人仕事の流儀
kentapapa
0
120
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
730
Metadata - Section 1: HTML Basics
mohab1
0
120
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
Why Our Code Smells
bkeepers
PRO
340
58k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
930
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
850
Site-Speed That Sticks
csswizardry
13
1.6k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
Test your architecture with Archunit
thirion
2
2.4k
It's Worth the Effort
3n
188
29k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
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 ◦ 公式のサンプルアプリ