wear-os

android studio error : missing feature: WATCH

混江龙づ霸主 提交于 2019-12-05 09:34:51
I have tried to run one simple application with android studio on my smartwatch and I've got the following message: my smartwatch runs android 4.4.2 which has API level 19 things I have tried and didn't help: change Min Sdk Version to API 19 remove < uses-feature android:name="android.hardware.type.watch" /> from androidManifest -the app is installed but when i try to run it from the watch i get the error: Unfortunately , My Application has stopped. logcat when my app crases instead of removing < uses-feature android:name="android.hardware.type.watch" /> I have tried changing it to: <uses

Android Wear Preview not connecting to Wear Emulator

放肆的年华 提交于 2019-12-05 09:01:05
I am trying to setup my development environment for Google Wear and have followed Google's instructions but as soon as I setup the port forwarding ( adb -d forward tcp:5601 tcp:5601 ) I am getting an error on the device; Connection closed, waiting before trying again I have the emulator running on the PC and Android device is a Nexus 4, 4.4.4. If you've updated everything, and have the new emulator, you might need Android Wear (not Android Wear Preview). Follow these steps: http://developer.android.com/preview/google-play-services-wear.html You may have done this recently, but now that Google

Background image for android wear notification

依然范特西╮ 提交于 2019-12-05 08:23:36
I want to set background image for Android Wear notification. What should be the size of the image? jacob.zimmerman The resolution for square watch faces as of right now is 280x280, whereas the circular watch face has a resolution of 320x320 (although some of this will be cut off, obviously). However, Android Wear implements a sort of parallax scrolling by default for larger images, so it can handle larger images with great ease, and it is even recommended that you do so ( see this previous answer ). So you really shouldn't worry about the size of the image, unless you were trying to create a

Android Wear: Google Play services out of date. Requires 9256000 but found 8701534

♀尐吖头ヾ 提交于 2019-12-05 05:08:13
问题 I can't get my Android Wear app to work. Every time it tries to open something on the phone I keep getting this error in the logcat: W/GooglePlayServicesUtil: Google Play services out of date. Requires 9256000 but found 8701534 Nothing should be wrong with my application, because it worked before. It stopped working when I did a factory reset on my LG G Watch. I checked the Google Play version codes on the watch with an app, and it is (as the logcat tells) 8701534 . (Why isn't it updating?)

How to load URL image in android wear?

时光总嘲笑我的痴心妄想 提交于 2019-12-05 01:26:10
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/Spring5InchesCubeVaseArrangement$45.00.jpg") .listener(new RequestListener<String, GlideDrawable>() { @Override public

How to make HTTP Requests over WiFi directly from Android Wear?

寵の児 提交于 2019-12-04 21:58:44
问题 how can I execute HTTP requests or open a socket on Android Wear? I used to think that's impossible but the Web Browser for Android Wear app says the folloing: "[..] works even when your phone is off if you have a smartwatch with Android Wear 5.1 and WiFi"*. I tested it and that app CAN connect the internet when the paired phone is powered off. Whenever I open a socket or try HTTP requests on Android Wear I always get a ConnectException saying failed to connect to http://foo.com (similar

Fragment in round Wear watch turning black in emulator/watch

自作多情 提交于 2019-12-04 21:39:40
问题 Im getting a black screen on my Android Wear round watch (on square it works). Both layouts show up OK in the Android Studio layout design. Project to test: https://bitbucket.org/powder366/motoblack Im using the following code: public class MyFragment extends Fragment { ... @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View contentView = inflater.inflate(R.layout.my_fragment, container, false); ... Layout my_fragment:

Run Phonegap application, that supports HTML5 and Javascript on Android Wear

为君一笑 提交于 2019-12-04 18:49:28
I had already executed Hello World apk on Android wear emulator, now I want to use HTML inside asset folder to execute it in wear emulator but I am not getting any success Android wear supports only Java application not to render HTML document. Please refer to https://developer.android.com/training/building-wearables.html for Android were app in details. It does not work like you are used to from normal Phonegap/Cordova yet. But as you can use a full Chrome Browser on the watch (like com.appfour.wearbrowser) I think it can be done! So what you need to do is fork Chrome on Android Wear and let

NFC Android wear (Huawei watch 2.0)

橙三吉。 提交于 2019-12-04 18:45:58
I am new to Android Wear development (standalone application) and currently building an NFC reader for wear. The problem I am facing is with the function adapter.enableForegroundDispatch(activity, pendingIntent, filters, techList) Whenever I run my code it is throwing an "unsupported exception" in the onResume method. ( The same piece of code works perfectly fine on the phone ) From what I have understood, in order to detect a tag the application needs to be in the foreground which is done by the above function. Since it is failing here, my pending intent is null and no tag is getting detected

How to implement gesture recognition in android wear

你。 提交于 2019-12-04 18:06:23
问题 Hello i'm looking for how to detect gestures in android wear, in android i use some code like this, but doesn't work in android wear.. is there a way to override the default gestures actions or just recognize them? I'm doing just like google developers: https://www.youtube.com/watch?v=naf_WbtFAlY http://youtu.be/sha_w3_5c2c?t=25m1s Is there something wrong with the emulator? (i'm using 32bit emulator: emulator -avd AndroidWearXC -force-32bit ) import android.app.Activity; import android.os