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
1
vote
0 answers

Android Wear 2.0 preventing accidental exit of application

I'm building a Wear 2.0 app and I want to prevent the accidental exiting of the app (swipe from left to right). How can I "Intercept" the closing of the activity, and abort the closing if the user did not mean to exit?
Mark Erickson
  • 767
  • 1
  • 7
  • 27
1
vote
1 answer

Android Wear 2.0 developing a complication

I've got an existing Android app that I'd like to provide a wear 2.0 complication for. I do not wish to create a custom Wear Watch Face nor a companion Wear app - I simply wish to be able to create a complication that users should be able to add to…
1
vote
0 answers

Android Wear 2.0 - retrieve calendar color from iOS Apple Calendar

I have an Android Wear app that fetches calendar events via WearableCalendarContract. It works great when paired with Android phones, but I recently discovered a bug when pairing with an iOS device using the Apple Calendar, in that it would not…
rjr-apps
  • 352
  • 4
  • 13
1
vote
0 answers

Android Wear 2.0: Dismissable fullscreen ambient notifications

ongoing notifications in Android Wear 2.0 have an ambient full screen mode, so when going to ambient the notifications stay on the screen with the clock at the top, like so: . This is perfect for my app that display train departures because I have…
Love
  • 1,709
  • 2
  • 22
  • 30
1
vote
1 answer

How to detect android wear 1.0 and 2.0

i have successfully made a project apk which allow the watch download the wear app. And i am trying to use that wearable code to support standalone for wear 2.0 as well - seem not much resources in the internet. my question is how to determine if…
1
vote
1 answer

Publishing a Wear app to the play store

I'm not clear about the process of publishing an android Wear application as a separate apk. My wear app is mobile dependent and supports both wear 1.0 and 2.0. I followed Google instructions of publishing the wear app as an embedded apk inside the…
AsafK
  • 2,425
  • 3
  • 32
  • 38
1
vote
0 answers

setContentIntent() doesn't work on Wear 2.0 notifications

When using setContentIntent() to add a default action to a notification, the action shows on old versions of Android Wear, but not on the 2.0 update. The action shows as "Open in phone" on the old versions, but no action appears at all on the new…
1
vote
2 answers

Display app icon on top of all window in android wear?

I am developing an wear app, i want the app icon to be display on top of window above the watch face. I have tried using WindowManager but failed to get the result. WindowManager.LayoutParams params=new …
Karthik
  • 87
  • 1
  • 9
1
vote
1 answer

Android Wear 2.0 - Getting location from iPhone

I'm developing an Android Wear 2.0 app and I'm paired to an iPhone. I'm using the FusedLocationProvider to fetch the location but I just can't seem to get the location. Is this even possible? If not, how can I know if I'm connected to an iPhone so…
Fábio Carballo
  • 3,245
  • 5
  • 26
  • 36
1
vote
1 answer

Bitmap is showing different resoulation inside onSurfaceChanged of WatchFaceService of Android Watch

The resolution of the bitmap I'm using is 480 x 480. When I'm trying to get the width of this bitmap inside of onSurfaceChanged using bellow code. public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { …
esrana
  • 13
  • 3
1
vote
1 answer

Is it possible to pass data from Android Wear 2.0 watch to an IOS (Iphone) app?

I wrote an Android Wear 2.0 that pass data to a phone side using Wearable DataAPI. This works nice when the phone side is Android based. Is it possible to write an IOS app that can accept data from a watch using Wearable DataAPI ? (in swift)
1
vote
1 answer

WearableRecyclerView OffsettingHelper.updateChild() not working

I'm trying to build a RecyclerView which scales items based on their distance from center on screen like settings menu, following this tutorial from official "Android Developers". Like this image: The problem is updateChild() method never gets…
Sdghasemi
  • 5,370
  • 1
  • 34
  • 42
1
vote
0 answers

Is there any way to add google TTS engine in android wear simulator?

I have ASUS Zenwatch2 which has inbuilt google TTS, but unfortunately it got damage. So I have tried to create simulator in Android studio but there is no option to add TTS engine.Is there any way i can get same hardware profile as ASUS Zenwatch2 in…
1
vote
0 answers

Awareness API not available in Android Wear 2.0

I'm trying to use the Awareness Fence API on Android Wear 2.0 but unable to do so. When I setup the GoogleApiClient with Awareness.API and call connect(), I get these errors in logcat. 02-17 04:17:55.215 495-30247/? W/ActivityManager: Unable to…
Afzal N
  • 2,546
  • 1
  • 26
  • 24
1
vote
2 answers

How to vertically center an element when using WearableDrawerLayout?

I am using a WearableDrawerLayout, and testing on a emulator with a chin. I am trying to have an element vertically centered. Instead what I see is that the element is centered in the area of "the screen minus the chin" - i.e. it is a bit shifted…
BoD
  • 10,838
  • 6
  • 63
  • 59