wear-os

Speech Recognizer on Google Wear in Emulator no voice input

蹲街弑〆低调 提交于 2019-12-13 16:56:39
问题 I was trying to use the Free-form Speech Input from Google Wear site. From the hello world example, I just added a click on textView. It does bring up the Speak Now activity from the speech intent, but the emulator was not able to detect any sound from my mic. I'm using Mac OS 10.9.3, I've tried both arm and intel version of the wear watch, and checked the hardware keyboard present on the AVD creation. The documentation said there is a system built-in Speech Recognizer, so installing the

Can android wear access a content provider from the mobile device?

痴心易碎 提交于 2019-12-13 08:59:04
问题 Since android wear and mobile are two separate devices, is the wear device able to access a public content provider from a custom app that's on the mobile once it is connected? Thanks. edit: if you downvote, pls comment why, as your downvotes don't help me understand anything. edit2: Ok, let me explain a little more. I'm creating a watch face that displays some useful data along with the time and to do that I need to access a content provider from my watch face. Can I access a content

Android Wear: How to Scale List View Image?

杀马特。学长 韩版系。学妹 提交于 2019-12-13 07:57:13
问题 I am trying to create a list view where every item in the list has an Image on top of a line of text. My problem is that I cannot get the Image to be any larger than 40X40, without it obscuring the view of the text underneath it. Here is my xml file: <com.thinksai.saicloud.WearableListItemLayout xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="center_vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout

Android Wear - Detect if handheld GPS is enabled, prompt to enable if not

依然范特西╮ 提交于 2019-12-13 07:19:18
问题 I'm currently building an application for Android Wear where the user can edit some settings only if the GPS on the handheld is enabled. I'm wondering whether I can enable the GPS programatically by asking permission on the Smartwatch, instead of having to redirect the user to the handheld's screen to accept or decline the request. I created the following mockup to illustrate the flow that I want to accomplish: I have the following questions, I have also added a 1* and 2* to the image to

Install android wear app on iPhone

。_饼干妹妹 提交于 2019-12-13 06:01:58
问题 I've developed an app for android wear that has an handheld side and a wear side. Is it possible to install an android wear app through android wear installed on the iPhone? 回答1: No, currently that is not supported. 来源: https://stackoverflow.com/questions/33477550/install-android-wear-app-on-iphone

Is WearableListenerService better than Service with Data and Message Listeners?

帅比萌擦擦* 提交于 2019-12-13 05:59:37
问题 I have connected my application to Android Wear's Wearable Data Layer with a service that implements DataApi.DataListener, and MessageApi.MessageListener. This service allows me bind to my activities (WearableListenerService does not) and exchange data and messages between the apps perfectly fine. Recently I noticed that my service was getting terminated by the system which leads me to my questions: 1. Is WearableListenerService better than the above setup in that it is less likely to be

Android Wear: CapabilityApi times out, doesn't return capabilities

无人久伴 提交于 2019-12-13 05:55:59
问题 I'm trying to use a new CapabilityApi introduced in play services 7.3 to learn about the capabilities of my android wear device(Asus Zenwatch). I've checked out this question and can confirm that Wearable.NodeApi.getConnectedNodes(...) approach does work to get a list of connected nodes and I do see the watch in the list. This is the code I'm running in an app on my phone to query capabilities of connected wear devices: GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(context)

Open corresponding app on Handheld without notification from Android Wearable (Gear live)

感情迁移 提交于 2019-12-13 04:46:44
问题 I would like to develop an app on the wearable wich should be able to launch an app on my Handheld device, without the notification standard ("open on device") action. It should start the app on the handheld, even if the Handheld App is closed at the moment. Is there a solution to achieve this. I can't find it in the documentation. If I overread that in the official doc., please post a link. 回答1: To do that, you have to use the Wearable Data Layer API. Just send a message using the Message

Android Wear DotsPageIndicator fades first time instead of always visible

一曲冷凌霜 提交于 2019-12-13 01:26:09
问题 DotsPageIndicator always fades out the first time it is shown. I tried setDotFadeWhenIdle(false); but then it fades out and never comes back. I just want it to be shown all the time and never fade out. I saw this question: Android Wear DotsPageIndicator only fades when first created but this never got answered. I hope somebody can help me with this problem. 回答1: I spent days on trying to figure out what's wrong with many different combinations. I think it's a bug. My solution until they fix

Android Wear 100% packet loss

China☆狼群 提交于 2019-12-13 01:16:31
问题 Was just writing my first wear app - everything works fine on the emulator - unfortunately on a real device ( Sony smartwatch 3 ) the app failed because it could not reach the internet. Even on adb shell I have problems 22|shell@tetra:/ $ ping google.com PING google.com (173.194.112.33) 56(84) bytes of data. ^C --- google.com ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5017ms This is happening with wifi and without ( then from my understanding the network