barbeau / gpstest

The #1 open-source Android GNSS/GPS test program
Apache License 2.0
1.77k stars 362 forks source link

Support Wear OS for smartwatch info #560

Closed barbeau closed 1 year ago

barbeau commented 3 years ago

Is your feature request related to a problem? Please describe. WearOS is getting somewhat of a reboot, and Wear Compose is in developer preview: https://android-developers.googleblog.com/2021/10/compose-for-wear-os-now-in-developer.html

Additionally, smart watches are getting more interesting from the GNSS perspective with some supporting dual-frequency.

Describe the solution you'd like I'd like to create a very simple "dashboard" display similar to https://github.com/barbeau/gpstest/issues/313, and a Status list, as a Wear app.

Given that the Status screen is already implemented as Composables: https://github.com/barbeau/gpstest/blob/master/GPSTest/src/main/java/com/android/gpstest/ui/status/StatusScreen.kt

A2aSJ4Qg4MAJNzC

...and Dashboard will be after PR https://github.com/barbeau/gpstest/pull/570 is merged, it should be relatively straightforward to re-use these in a Wear Compose app. We'll probably need to add code to only show certain items (e.g., for Status - azimuth, elevation, LocationCard) if the screen is over a certain width. That should allow us to present a minimal set of elements on a small watch screen to provide GNSS info like the list of signals with ID, constellation, CF, and C/N0.

We can start with just showing Status first in a new WearOS module in this project.

barbeau commented 2 years ago

Good recent video from Android Dev Summit covering most recent navigation and other Wear Compose details.

"From mobile to Wear OS: Learn how to create a Compose app for the wrist" https://youtu.be/B7D3G6tC9n0