-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Synthetic Data on Wear OS 4 #183
Comments
We need to update the instructions in the sample--thanks for pointing that out! The docs from your second link are the best resource for synthetic data generation with Wear 4. If you are using the latest version of the Wear 4 emulator in Android Studio Hedgehog, Health Services will automatically generate data appropriate for the exercise specified your exercise config. If you aren't using the latest version of the emulator, you can still use the emulator extended controls for Heart Rate, but the emulator has to be running in a separate window. |
It doesn't look like Hedgehog is released yet. I am on Giraffe. Will this work with Giraffe?
What is an exercise config?
What do you mean here? Is this as simple as "popping" out the window within Android studio? |
This will kick start the behavior on Wear 4 emulators outside of Hedgehog.
|
Okay, but what about in the case that I am testing out either spot measurements or passive (background monitoring)? In those cases how do I specify the synthetic data to generate? And in the case of a "run" exercise, Is there some equivalent to saying I want "running" vs "walking" speed (ie what existed in Wear OS 3)? i.e. from external to the code it self, to control the synthetic data being piped in
After running that code, do I then use the same |
You can simulate passive events (such as sleeping, fall detection), but can't simulate passive data generation. The team is working on implementing support for custom values in Wear 4, but it isn't supported yet.
If developer options are enabled, data should be automatically generated, without the need to run any additional commands. |
The extended emulator controls are separate from synthetic data generated by Health Services. I can check with the emulator team regarding the expected behavior in Hedgehog + Wear 4 (just tested with the Wear 3 emulator, and the app is responding to the extended controls). Can you confirm if you're seeing any values at all (perhaps the ones automatically generated by Health Services?). If you're on hedgehog and have downloaded the SDK updates, you don't need to run the command, it's only for pre-Hedgehog Android Studio. |
In the |
The docs on the repo for using synthetic data state to use
adb
; however, the docs for Wear OS 4 say that is no longer needed and that the emulator now natively supports these events.How do I control the emulator to walk vs run, etc? I tried this slider in the emulator extended controls, but it seems to have no effect:
Does this repo work with Wear OS 4 and if so what are the steps for synthetic data on that OS?
The text was updated successfully, but these errors were encountered: