wear-os

Gradle error: configuration declares dependency which is not declared

和自甴很熟 提交于 2019-11-26 20:34:51
问题 I'm making my first android wear app, but I can't get Android Studio working. First I got the error "Project with path ':wear' could not be found in project ':mobile'. This was resolved by adding "include ':wear" in settings.gradle . But then a new error occurs: "Error:Module version Test2:mobile:unspecified, configuration 'wearApp' declares a dependency on configuration 'default' which is not declared in the module descriptor for Test2:wear:unspecified" . What do I have to do to resolve that

Is there any way to detect if the clock is round?

…衆ロ難τιáo~ 提交于 2019-11-26 19:59:32
问题 Might be I missed something but is there any flag for knowing if the clock is round or square? I could imagine that this is important if you want to design the background of the notifications. 回答1: Update for API 23: To determine if the screen is round you can use context.getResources().getConfiguration().isScreenRound() Android reference Or you can use the round and notround resource qualifiers and let the system apply the proper resources but beware that this will not work on devices

Android Wear App not installed

时间秒杀一切 提交于 2019-11-26 19:45:21
问题 we release our first Wearable Application today but sadly this one isn't get installed automatically as it should. We double checked the APK and the wearable apk is present but never hits the watch. Manually packaging the APK as suggested here http://android-developers.blogspot.de/2014/07/update-on-android-wear-paid-apps.html doesn't helped either. (We know this should only affect paid apps but just to be sure) Is anybody else facing this issue? The app works if we install the APKs over adb.

Pairing Android and Wear emulators

余生颓废 提交于 2019-11-26 19:29:48
I don't have an Android Wear, nor do I have a phone running 4.3. Is there a way to connect the JB 4.3 emulator and Android Wear emulator for app development? Using an emulated Android 4.3 device connected to a Wear emulator is not supported at this time. After reading a blog post a few days ago I finally managed to connect an emulated Android-Device to a Wear-Emulator . Here are the different steps that are necessary: Step #1 Create a new emulator that is based on the Google APIs platform , otherwise you won't be able to run the Android Wear Companion app since it requires the Google Play

Sending messages from Android Wear to host device

一曲冷凌霜 提交于 2019-11-26 18:06:55
问题 I'm writing a custom Android Wear application that's supposed to fire a one-off message to the connected host device (the phone). Digging through the API, I found the following tutorial that should work well: http://developer.android.com/training/wearables/data-layer/messages.html My Android app has a WearableListenerService and my Android Wear app fires off messages using the Message API. The WearableListenerService get's called when the emulator gets connected based on logging the following

How to detect if android device is paired with android wear watch

一笑奈何 提交于 2019-11-26 17:40:36
问题 I am creating an android wear app that extends push notifications. My app downloads approximately 10 images from a server when a push notification comes in and displays these additional images on the watch. These images are specific to the android wear app and are not shown on the handheld device. How do I tell if the handheld device is paired with an android wear device so that I can determine if it is necessary to download the additional images required for the wear app? Thanks! 回答1: You

Android Wear app not installing through handset

风格不统一 提交于 2019-11-26 12:28:27
问题 I\'m trying to get a wearable app installed through an Android handset using the \'Package with Android Studio method\' found here but it\'s not working. The apk is never installed to the wearable device. This is the logcat output: 07-28 15:11:54.107 766-820/? W/PackageManager﹕ Unknown permission com.google.android.wearable.READ_SETTINGS in package com.google.android.gms 07-28 15:11:54.117 766-820/? W/PackageManager﹕ Not granting permission com.google.android.gm.permission.AUTO_SEND to

How to request permissions from a Service in Android Marshmallow

对着背影说爱祢 提交于 2019-11-26 11:17:37
In Android Marshmallow, permissions should be requested at runtime when they are needed, instead of all at once when an app is installed. However, I can only seem to request permissions from an Activity, which is a problem since my app contains only Services. (Why is that, you might ask? The app has an Android Wear watch face bundled inside, and all the phone does is look up photos nearby to send to the watch - no Activity needed. But it does require location permissions.) So, is there any way to request permissions from a Service? Or somehow force the permissions to be granted at install time

Google Play services out of date. Requires 11011000 but found 10289574

╄→尐↘猪︶ㄣ 提交于 2019-11-26 09:55:52
问题 I\'ve been strugling with this problem about week now. Been searching similar topics about this but still can\'t resolve my problem. The Prolem is that when i\'m trying to run my program on Polar m600 wear or wear emulator (Android V 7.1.1 and API25) they\'r giving me this message \"Google Play services out of date. Requires 11011000 but found 10289574\". I\'ve followed the \"Getting the Last Known Location\" part in the android developer site. (Link for the site https://developer.android.com

Pairing Android and Wear emulators

让人想犯罪 __ 提交于 2019-11-26 06:58:43
问题 I don\'t have an Android Wear, nor do I have a phone running 4.3. Is there a way to connect the JB 4.3 emulator and Android Wear emulator for app development? 回答1: Using an emulated Android 4.3 device connected to a Wear emulator is not supported at this time. 回答2: After reading a blog post a few days ago I finally managed to connect an emulated Android-Device to a Wear-Emulator . Here are the different steps that are necessary: Step #1 Create a new emulator that is based on the Google APIs