Questions tagged [android-wear-2.0]

Second generation of Google's operating system for smart wearable devices, based on the Android platform.

Android Wear 2.0 is the second generation of Google's operating system for smart wearable devices like wrist watches. It's an extension of , and was released in Spring 2017.

Notable features include a redesign of the system UI, standalone applications, voice recognition using Google Assistant, the addition of watch face complications, and updates to Google Fit.

225 questions
0
votes
1 answer

Try to send HTTP Request to API Backend via Wear OS standalone app

I really need your help please. I have the following problem: I want to send data via a android Wear watch (with integrated sim card) using a standalone Wear OS app. I want, if a button is pressed that a http request is send to my backend server…
0
votes
2 answers

MainActivity has leaked ServiceConnection when onDestroy runs in android. How to prevent this error?

I'm making an android wear application, and the main functionality is in the ConnectionService class, which basically handles communication with a websocket. My problem is, that if I quit the application with the buttons on my android wear device,…
adamb
  • 793
  • 1
  • 11
  • 20
0
votes
1 answer

How to simulate an analog stop watch in Android Watch Face?

I'm developing a realistic chronograph watch with Android Wear OS. I already have a seconds hand watch working well, and a stoped chronograph hand. When I tap on the watch, I want my chronograph hand start from zero, but it is starting from the…
Pablo Darde
  • 5,844
  • 10
  • 37
  • 55
0
votes
1 answer

Disable or change region of watch face swipe on Android Wear

I'm writing a flutter app (which uses gesturedetectors), and want to change the swipe area or disable the top level swiping on a watch where it drags the watch face over the app (Also would appreciate any other solutions, ie in Java that I could…
Ian
  • 13,724
  • 4
  • 52
  • 75
0
votes
1 answer

Flutter location stream not sending gps updates on Android Wear 2

I have a flutter app, that uses the location library, found here I import with import 'package:location/location.dart'; and later call with location.onLocationChanged().listen((Map currentLocation) { print("LocationListener " +…
Ian
  • 13,724
  • 4
  • 52
  • 75
0
votes
1 answer

ViewPager and Android Wear = crash

_ Hello members of stackoverflow! I worked successfully with the ViewPager (VP) on a "normal" activity. Now I tried to use almost the same way for an Android Wear app. In my MainActivity, which contains the VP, I faced different errors like: Error…
Stefan M.
  • 13
  • 4
0
votes
1 answer

How can I draw a complication slot on my watch face?

I'm developing my own Android watch face and everything works well until now. Now, I trying to create my first complication in order to show the seconds. I know that I need to create my own Data Provider for this complication. I already have seen…
Pablo Darde
  • 5,844
  • 10
  • 37
  • 55
0
votes
1 answer

How to programmatically close A WearableActionDrawerView when using the new support library version?

In my Android wear application I have a WearableActionDrawerView contained withen a WearableDrawerLayout. The problem that I am having is that I cannot figure out how to close the ActionDrawer programmatically. Normally I would use the closeDrawer()…
SteelToe
  • 2,477
  • 1
  • 17
  • 28
0
votes
1 answer

Shared data storage between mobile and wear app

I am building an android app that has a mobile, wear and shared module. It is an app that stores data with my SampleObject to the SQLiteDatabase. SampleObject{ long ID; // Primary key, autoincrement Date date; String text; } All…
filipst
  • 1,547
  • 1
  • 30
  • 55
0
votes
0 answers

New google fit HistoryClient not working for simple daily steps

I am migrating from the deprecated GoogleApiClient for a wearOS watch face but I cannot get the daily steps count to work at all with the new interfaces. I am running nearly the exact code as the examples given on the developer website: OnCreate in…
Jazzor
  • 21
  • 1
0
votes
1 answer

Errors while using the drawer and then coping classes and linking file resources

I wanted to create an Android app for my Sony Smartwatch 3 and barely know anything about Android Studio and how to cope with the different files to get things working. That's why I started with an Android Developers Guide (a difficult and not at…
Malte Ge
  • 153
  • 3
  • 12
0
votes
1 answer

Wear OS Notification Vibration and Sound

In my foreground service I get notifications and this is working totally fine. The only problem is that my watch don't vibrate or make any sound when I get a notification. I tried setting vibration on NotificationChannel or on Notification but…
user10240524
0
votes
0 answers

how to use intent on android wear(wear os by google)

I tried to use intent like this on ticwatch pro. However, the application stopped. I want some information about this. This code is in MainActivity Intent intent = new Intent(MainActivity.this, TestActivity.class); …
2lu3
  • 1
0
votes
0 answers

Android Wear Authorization not Working

I created an app for the Wear operating system. I used Android Studio 3.1.3 In this app I inserted a button and on the click of this I would like the watch to vibrate. The problem is that the permissions of the app do not work. I entered the…
0
votes
1 answer

Android Wear - Show watchface while ambient, app while active

I'm designing an android app for my wearable device in which I have overridden ambient mode. I would like for my app to show the watchface while in ambient mode, and show the app while out of ambient mode. In other words, I want to make the app…
Instakat
  • 101
  • 2
  • 10