-
Notifications
You must be signed in to change notification settings - Fork 364
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
feat: Add Wear OS Interface for GPSTest #605
Conversation
gpswearos/src/main/java/com/android/gpswearos/presentation/SampleData.kt
Outdated
Show resolved
Hide resolved
gpswearos/src/main/java/com/android/gpswearos/presentation/MainActivity.kt
Outdated
Show resolved
Hide resolved
gpswearos/src/main/java/com/android/gpswearos/presentation/MainActivity.kt
Outdated
Show resolved
Hide resolved
gpswearos/src/main/java/com/android/gpswearos/presentation/MainActivity.kt
Outdated
Show resolved
Hide resolved
gpswearos/src/main/java/com/android/gpswearos/presentation/MainActivity.kt
Outdated
Show resolved
Hide resolved
gpswearos/src/main/java/com/android/gpswearos/presentation/SampleData.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/android/library/LocationLabelAndData.kt
Outdated
Show resolved
Hide resolved
wear/src/main/java/com/android/wear/presentation/MainActivity.kt
Outdated
Show resolved
Hide resolved
wear/src/main/java/com/android/wear/presentation/MainActivity.kt
Outdated
Show resolved
Hide resolved
wear/src/main/java/com/android/wear/presentation/MainActivity.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/android/gpstest/library/theme/SignalInfoViewModel.kt
Outdated
Show resolved
Hide resolved
In the latest version, looks like you were missing the Application name entry in the manifest. I added that and when launching you now see the dummy lat/lon values. I also went ahead and added the Flows to the wear Activity. This should be very close to a working state in terms of listening to the GnssStatus and Location updates, although it needs some more debugging - I still don't see the status updates on the screen. Here's a branch with the changes: ...and the commit: |
Thank you! It did work. The status doesn't update on the screen because the |
|
@adaext I took a closer look, and there is actually an exception being thrown by the
...and here's what is says:
So you just need to ask the user for location permissions prior to calling Also, could you add this type of Log statements in any existing try/catch block in all the Shared*Manager classes so we can easily see when a problem happens? |
A Wear OS Interface Draft.
Closes #560