Device details:
OS version: 14
Device: Samsung S23 FE
Issue:
I’m developing an app, where I’m using health connect to read weight data.
I have allowed read weight data access to my app
- When I’m on Activity A, I background the app and remove all access from health connect
- Then when I foreground the app
- Process ends and is re-started and Activity is recreated
Why does this happen? Are there any callbacks we receive on removing access in health connect? Or are there any other intent that need to be added to handle this?
Currently, I’m using below lines:
How to suppress restarting of the activity?
New contributor
Raksha Nairy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.