wear-os

Android Wear device selection box says “offline localhost:4444 minSdk (API 20) > deviceSdk (API 1)”

别说谁变了你拦得住时间么 提交于 2019-12-10 14:59:24
问题 I am trying to build android wear application, If I set minsdk to 20/21. It gives error below, But if I set it to 19, I get following error: /home/bhupinder/AndroidStudioProjects/MyWatch/app/src/main/AndroidManifest.xml:0:0 Error: uses-sdk:minSdkVersion 19 cannot be smaller than version 20 declared in library /home/bhupinder/AndroidStudioProjects/MyWatch/app/build/intermediates/exploded-aar/com.google.android.support/wearable/1.0.0/AndroidManifest.xml Suggestion: use tools:overrideLibrary=

How to setup USB driver for ADB for Sony Smartwatch 3 on Windows 10

こ雲淡風輕ζ 提交于 2019-12-10 14:00:13
问题 I am trying to setup ADB debugging via a wired USB connection from my PC running Window 10 Pro (on a 64-bit Core i7) to my Sony Smartwatch 3. My PC is generally setup for Android Development, including for Android Wear (e.g. ADB debugging my Nexus 5X phone or Samsung Gear Live watch both work fine). I've enabled developer options on the watch, including "ADB Debugging". I believe the problem is that I don't have a USB driver setup properly. As far as I know, it should work with the "Google

Deploying Mobile and Wear at the same time

一个人想着一个人 提交于 2019-12-10 13:59:12
问题 Is there a way to compile and deploy both the mobile and wear app at the same time from Android Studio? I find myself making changes to both parts and then I need to wait for one to finish before I can deploy the next. 回答1: If you have the default configurations for project names on Android Studio. You should have "mobile" and "wear" options in the launch combo. Click on the arrow, choose "Edit Configurations..." Select the "wear" application on the left list On the right side, scroll down to

Android Wear Prevent Sleep

↘锁芯ラ 提交于 2019-12-10 13:43:22
问题 I'm writing a small wear app that is required to be quick access for around 10 - 15 minutes at a time. Problem is when the watch sleeps (screen completely blacks out) you have to go back into the start app screen to get back to it. The data is retained so this is more of an annoying than anything else. Is there anyway to have the watch only dim the screen but not turn it "off" until the user dismisses the app? 回答1: Please take a look at a session from Google I/O 2014: https://www.youtube.com

How to set WearableListView item height

落花浮王杯 提交于 2019-12-10 12:47:43
问题 I make WearableListView list. Problem is that setting android:layout_height="20dp" doesn't help How to set height in this case? In Android Wear sample projects Notifications and Timer they also just set atribute android:layout_height="80dp". But I tried to set in the projects android:layout_height="20dp" but it didn't help! (below is my project source code): list_item.xml: <?xml version="1.0" encoding="utf-8"?> <base.mobitee.com.mobiteewatch.adapter.HolesListItemLayout xmlns:android="http:/

Does Android wear 2.0 has its own GCM/FCM Registration ID?

ε祈祈猫儿з 提交于 2019-12-10 11:41:01
问题 As a part of announcement of Android Wear 2.0 there was declared: Standalone applications: direct network access to cloud (apps run on watch even when your phone isn't with you). The question is does this means that android wear application can get its own GCM/FCM registration ID and receive push notifications directly to the watch without phone at all? Can someone here prove it with documentation or on its own experience? What happen if I have same applications on the device and watch, that

Getting Data To Android Wear Without Opening Companion App

家住魔仙堡 提交于 2019-12-10 11:35:24
问题 I'm attempting to add some functionality to our current app's offering by implementing a custom app on Android Wear. In an ideal use case I would like to have the user open the wear app and for it to ask the handheld for the current data that it has stored. My first thought was to use an IntentService, but it does not appear that I'm able to get this to work with an implicit Intent. Also, after reading the data syncing section it appears that this is not the preferred manner of getting data

syncing accelerometer data of android wear to phone or computer

[亡魂溺海] 提交于 2019-12-10 09:55:50
问题 Is it possible to sync real time data generated by sensors such as accelerometer, gyroscope etc. which are fitted on the smart watch (running on android wear) to any phone instantly. Is yes, how to do so ? 回答1: Yes it is possible. Use the SensorsApi to collect the data. Use the MessageApi to send the data from the watch to the phone. 来源: https://stackoverflow.com/questions/28189733/syncing-accelerometer-data-of-android-wear-to-phone-or-computer

Android Wear 5.1 wrist gesture API?

徘徊边缘 提交于 2019-12-10 08:48:58
问题 Android 5.1.1 for wearables introduced the ability to dimiss notifications by rotating/flicking your wrist. Is this API exposed for developers to use? I'm unable to find any information on this, and their wearables developer site does not seem to have been updated. 回答1: It seems a bit late but this looks like what you exactly wanted. Although pushing, raising, shaking gesture is not available, flicking wrist out and in gesture is available. Each wrist gesture is mapped to an int constant from

How to load URL image in android wear?

一世执手 提交于 2019-12-10 01:57:08
问题 Right now I am using Glide-library to load the image in Android Wear. It doesn't load the image in most of the times. However, it loads image sometimes. Don't know what going wrong in my code. Note Wear is connected to the device via Bluetooth and I successfully get JSON response of Webservice in Android Wear via Broadcast Receiver from mobile. All data are displayed properly in wear except the images. Glide.with(mContext) .load("http://www.hanamoflorist.ca/images/uploads