3,153 questions
1
vote
0
answers
253
views
su permission denied on rooted Android, even with world-executable /system/xbin/su
I'm trying to run some hacky prototype code on a rooted WearOS device. I don't need to scale this to multiple devices or into a production enivronment.
At one point in my app I try to invoke su:
val ...
1
vote
1
answer
122
views
Android Sleep API Codelab on Watch: API is not supported yet
I am trying to run the Android Sleep API Codelab (source code on GitHub) to run directly on a Pixel Watch 2
Under Settings > System > About
Wear OS by Google
4.0
Model Google Pixel Watch 2
...
1
vote
0
answers
249
views
Notification full screen on wear os
I want to show a notification on the watch when the watch locks the screen
I tried by creating a service with an alarm, then listening at the receiver to display a notification. Here, I have set the ...
1
vote
1
answer
112
views
Wear OS tile crashes when minification is enabled: LifecycleOwner of this LifecycleRegistry is already garbage collected
I wrote a simple Wear OS app which shows a tile and when clicked opens custom app list.
Tile uses androidx.glance:glance-wear-tiles:1.0.0-alpha05 and the rest of the app uses androidx.wear.compose.
...
1
vote
1
answer
337
views
WearOs Watch Face Format: either gps or custom SourceType?
What I'm wanting to do is make a Watch Face Format watch face that shows the sun position and moon position and phase, and rise and set times. The moon phase is fortunately included in the SourceTypes....
0
votes
0
answers
221
views
How to integrate call/Incoming/call with WearOS?
We have a call(VoIP) capability in our phone app and wanted to integrate in our Wear/Watch App. We see from other apps like WhatsApp, etc the call channel is given to the Native Incoming/OutGoing ...
1
vote
1
answer
523
views
OnePlus Watch 2 force stop my application when screen turns of and it cancels all scheduled alarms
I have a Wear OS application which is working fine since the original Android Wear; even on Wear OS 4 Samsung watches. Problem is on the new OnePlus Watch 2, which is a Wear OS 4 device, but with some ...
0
votes
2
answers
143
views
How to change Composable Button Icon/Bitmap after Creation
I want to be able to change the image on a button later in my program - not during creation.
My main class
class MainActivity : ComponentActivity() {
lateinit var button: Unit
...
setContent {
...
1
vote
0
answers
199
views
How to Pair Samsung Watch6 Class to Android Studio on Windows - Fails 2 Ways
I am trying to pair a Samsung Watch6 Classic with the latest Android Studio on a Windows box.
I've found two ways that don't work - searching for a way that does.
First way that does not work
In ...
0
votes
0
answers
43
views
How do you add images to an AVD emulator in Android Studio/Wear OS
Developing an app using Android Studio that uses the PickVisualMediaRequest.
How can I put images on the emulator so the picker can find them so I can test that feature?
1
vote
1
answer
228
views
How to properly get heart rate bpm in a Watch Face Service?
I made a watch face using the Jetpack Watch Face API and I'm trying to get the bpm data into a string as to paint them into the canvas. I don't want to use complication as it seems that they will go ...
1
vote
1
answer
809
views
Jetpack Compose persist data between app loads
I have an android watch app that i am building. Disclaimer, I'm a Java engineer with some early experience in android, say 10 years ago so I'm not overly familiar with Kotlin or Jetpack Compose.
I've ...
0
votes
2
answers
343
views
Watch Face isn't recognised as a standalone app by Google Play store
I am developing a watch face using the Watch Face Format. My watch face consists of a Wear OS bundle (the watch face itself) and an optional companion app for the mobile phone.
I have set my watch ...
0
votes
1
answer
395
views
React native connect to wearables
everyone! I need help regarding the integration of React Native with wearables. Is it possible to create a React Native app that reads and connects to smartwatches/bands, displaying health-related ...
1
vote
0
answers
133
views
Jetpack Compose Wear OS - PositionIndicator state lost inside a ViewPager2
I struggle to find a solution to a weird behavior with PositionIndicator in Jetpack Compose.
Firstly, I am in a specific case when I want to setup a Jetpack Compose fragment to be displayed inside a ...
2
votes
1
answer
421
views
RemoteActivityHelper.startRemoteActivity not working with Android Wear OS 4 Emulator
I am developing a companion app for my Android Wear OS watch face. I am trying to use the startRemoteActivity method to launch Google Play store an a watch, where a user can download the watch face (a ...
1
vote
1
answer
154
views
How to handle a long click event on wear compose?
I use the Wear Compose Version 1.2.1, which can handle onLongClick event with Modifier.combinedClickable(), but after the Wear Compose Version 1.3.x does not handle the long click event.
I think the ...
4
votes
2
answers
117
views
How to handle unsubstantiated app rejection from Google?
My Android app has a companion Wear OS app. The companion app's main UI is a scrollable view with a PositionIndicator that (per the design guidelines) shows up while the view is scrolling.
The ...
0
votes
0
answers
625
views
Access heart rate variability wear os app
I'm developing a stress detection wear os application for my master and need to access the heart rate variability (HRV), preferably I would like to avoid solutions where I have to depend on other ...
0
votes
1
answer
278
views
Wear OS complication is not being updated to the latest value
I am trying to update my complication from the shared SharedPreferences value which I define in my Activity like this
SharedPreferences.Editor editor = getSharedPreferences("MY_PREFS_NAME", ...
2
votes
0
answers
477
views
LazyColumn (and ScalingLazyColumn) with variable height items in Wear OS
I don't know if I've stepped in a LazyColumn bug or maybe I'm doing something wrong.
It looks like LazyColumn takes the first four† items' height and repeats them for the next elements.
Consider the ...
0
votes
1
answer
209
views
Wear OS complication .setTapAction for calling an activity
I am trying to put setTapAction of my complication to call the activity, but it’s not working whenever I tap it does not do anything just a ripple effect, my code is below.
class CustomComplication : ...
1
vote
0
answers
40
views
Is it possible to modify a WearableDrawerLayout?
My app keeps getting rejected by Google testers because it uses a WearableDrawerLayout, which is the WearOS equivalent of a NavigationDrawer. It's a built-in menu that you can pull up from the bottom ...
0
votes
3
answers
254
views
Pin App on Wear OS, so a user only can interact with that app?
we go on a trade fair and want to present our WearOS App there, so the user can interact with it. For safety reasons we would like to pin the app so that a user only can interact with our app and no ...
3
votes
1
answer
547
views
How to focus the currently selected intem in a horizontalPager?
I am working on an wearOS app with a HorizonalPager, which has a ScalingLazyColumn in each of its pages. For all who aren't so familiar with wearOS design elements: A ScalingLazyColumn is basicly just ...
1
vote
0
answers
46
views
Wear OS Loading Wrong Keyboard on Physical Device
I have an OutlinedTextField that should only accept CAPITAL characters. I have defined the composable like this:
val keyboardController = LocalSoftwareKeyboardController.current
var textFieldValue by ...
1
vote
1
answer
991
views
Fetch health information from smartwatch and transfer it to mobile phone via Bluetooth
I need to get the data like heart rate and blood oxygen level from smartwatch and send it to a mobile phone.
I researched and found out I could use the Data Layer API to synch and send data between a ...
0
votes
1
answer
267
views
How to add a clickable modifier to EdgeContentLayout (tiles)
What's the problem
I'm trying to build a tile with a progress bar (showing the user's sleep time) and that when a user clicks it, it opens the main activity (app), but I can't figure out how to add ...
0
votes
1
answer
216
views
WearOS and Android application does not communicate
I want to display the numbers entered in an Android app on a Wearable device, but it's not working as expected. Since MessageApi is deprecated, I'm trying to use MessageClient as a replacement, but it'...
1
vote
1
answer
456
views
Current mechanism to detect a fling gesture on Wear OS with Jetpack Compose
I am trying to detect a fling gesture on Wear OS. Documentation on https://developer.android.com/jetpack/compose/touch-input/pointer-input/drag-swipe-fling states that
Note: The swipeable APIs have ...
1
vote
1
answer
278
views
How to start a Wear OS app from a complication setTapAction() BroadcastReceiver?
I've created a Wear OS app with tile and complication using the built-in Android Studio project "Empty Wear App With Tile and Complications".
When the user touches the complication, I want ...
1
vote
1
answer
743
views
Get Health data on WearOs watch, not on phone
I am creating an app for Samsung watch 6 which is using WearOS. I want to show following health data directly from the watch, independent of it being connected to any phone.
Heart Rate
SPO2
...
0
votes
1
answer
228
views
How do I set the icon in the list of complications?
How do I set the icon that appears in the list of complications? Here's my complications code, and screenshots of my icon showing correctly in the list of apps, the small icon showing correctly at the ...
0
votes
1
answer
314
views
java.lang.UnsupportedOperationException: Can't convert value at index 89 to dimension: type=0x4
The following exception caught in my application.
12-02 11:49:12.640 10039 940 940 E AndroidRuntime: FATAL EXCEPTION: main
12-02 11:49:12.640 10039 940 940 E AndroidRuntime: Process: com....
0
votes
1
answer
370
views
How to bring Wear OS OnGoingActivity back to front from a service
The Wear OS application is designed to display messages at random intervals while active. To achieve this, the application utilizes a background service paired with a notification linked to an ongoing ...
0
votes
1
answer
95
views
Wear OS Complication setTapAction(): No Broadcast
I'm creating a pending intent for complication tap like this:
override fun onComplicationRequest(request: ComplicationRequest, listener: ComplicationRequestListener ) {
class ...
0
votes
0
answers
167
views
Starting Activity from Background on WearOS 4
I'm currently working on a small project developing a standalone alarm app for WearOS, primarily targeting WearOS 4.
The app needs to start an Activity when an alarm is received. However, I'm facing ...
0
votes
1
answer
71
views
WearOS app:boxedEdges="all" hides the scrollbars in RecyclerView
Does anyone have a work around?
The scrolls bars are visible without boxed edges
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:...
0
votes
1
answer
230
views
WearOS and Android App connection issues?
I'm currently working on my first WearOS Project. For the beginning i just want to establish a connection between my WearOS app and a basic android app running on a phone.
For the testing i'm using my ...
0
votes
1
answer
238
views
How to set bitmap in proto tile android
I want to set a bitmap in android proto tile for wear. We can set the image using Image Builder class. But i do not find any method in proto tile to set the bitmap image in android. I am using below ...
3
votes
1
answer
538
views
Wear capabilityClient Nodes are not "nearby"
I haven't posted here in a while. Please forgive my lack of clarity at this late hour.
Situation
I'm wanting to listen to the capabilityClient from a wear device to know when a handheld device goes ...
2
votes
1
answer
144
views
Is WearOS v. 3 Compatible with Old Apps?
I've created an app that runs on WearOS, but my customers report that they can't see the app in Play Store after upgrading their smartwatch to WearOS ver. 3.
Is this new version compatible with the ...
1
vote
0
answers
116
views
Debugging Wear OS Watch Face
I have installed a fresh copy of Android Studio (2021.1.1 Patch 1), downloaded the watch face sample provided on https://github.com/android/wear-os-samples/tree/main/WatchFaceKotlin, and am trying to ...
1
vote
2
answers
209
views
Is there a way to create a marquee text in a Wear OS tile?
I am using Jetpack Compose for Wear OS and I am creating a tile that I would like to display some marquee text on - like a news ticker.
Is there a way to do this?
I tried creating a function like this:...
1
vote
1
answer
755
views
WearOS compose error: "java.lang.NoSuchMethodError: No static method mutableStateOf(J)Landroidx/compose/runtime/MutableLongState" [duplicate]
I wanted to start programming a wearOS app, so I just created an new project. But when I started the emulator to check if everything works, the default "hello world" application crashed and ...
0
votes
1
answer
101
views
Getting text input from wear os keyboard
@Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
return new BaseInputConnection(this, true) {
@Override
public boolean finishComposingText() {
...
1
vote
0
answers
28
views
On my Wear watch I have a whitespace on top of a Custom action sheet in Xamarin forms Android
I have a customized action sheet on my wear watch. This is because the normal action sheet is white and at the Android Store they want it to be black. The code for my CustomActionSheet.axml sheet is:
&...
2
votes
1
answer
366
views
Wear OS TimeText() Exception
I've just tried to build and run the default Wear OS project for an app with tile and complication, but I get this run-time error in the simulator:
Process: au.gondwanasoftware.ontrack, PID: 9869
java....
1
vote
0
answers
110
views
How to detect when app starts from pressing hardware button in Android WearOS and navigate to different compose screens?
I am developing a WearOS app using Jetpack compose and I have one activity and multiple composable screens.
I have a requirement to launch app to two different destinations.
User click app icon -> ...
0
votes
2
answers
159
views
Multiple items have the same description
I am working on Android Wear OS App development with Android Studio
I got report by Google like this.
As you can see I got issue with the NumberPicker.
<NumberPicker
android:id="@+id/...