wear-os

Android Wear notification not showing

倖福魔咒の 提交于 2020-01-06 21:36:25
问题 Hi I'm writing an Android Wear app that allows the user to control a music player from their watch. I'm trying to do it with a notification with two action buttons. Below is the code that creates/updates the notification when the currently playing song changes, it is from OnDataChanged() from the WearableListenerService . The data arrives on the emulator as expected and the notification builder is constructed correctly, as I can see it in the debugger. Also the final log line is executed and

Android Wear notification not showing

旧街凉风 提交于 2020-01-06 21:36:09
问题 Hi I'm writing an Android Wear app that allows the user to control a music player from their watch. I'm trying to do it with a notification with two action buttons. Below is the code that creates/updates the notification when the currently playing song changes, it is from OnDataChanged() from the WearableListenerService . The data arrives on the emulator as expected and the notification builder is constructed correctly, as I can see it in the debugger. Also the final log line is executed and

SendMessage from Android mobile service to Wear not received

故事扮演 提交于 2020-01-06 20:14:32
问题 I've been battling this for a while. every test says success, but no message is received. I'm sending from a WearableListenerService to Wear as a reply to a message i've just received. sending (from mobile WearListenerService): @Override public void onMessageReceived(MessageEvent messageEvent) { apiClient = new GoogleApiClient.Builder(this).addApi(Wearable.API).build(); ConnectionResult connectionResult = apiClient.blockingConnect(10, TimeUnit.SECONDS); if (!connectionResult.isSuccess()) {

System indicators do not respect Gravity.BOTTOM

我的梦境 提交于 2020-01-04 09:21:59
问题 I have taken the demo analog watch face, and tried getting the system indicators to appear at the bottom, using setStatusBarGravity(Gravity.BOTTOM) . It appears that this particular gravity isn't respected. setWatchFaceStyle(new WatchFaceStyle.Builder(AnalogWatchFace.this) .setCardPeekMode(WatchFaceStyle.PEEK_MODE_SHORT) .setBackgroundVisibility(WatchFaceStyle.BACKGROUND_VISIBILITY_INTERRUPTIVE) .setShowSystemUiTime(false) .setStatusBarGravity(Gravity.BOTTOM) .setHotwordIndicatorGravity

System indicators do not respect Gravity.BOTTOM

送分小仙女□ 提交于 2020-01-04 09:21:13
问题 I have taken the demo analog watch face, and tried getting the system indicators to appear at the bottom, using setStatusBarGravity(Gravity.BOTTOM) . It appears that this particular gravity isn't respected. setWatchFaceStyle(new WatchFaceStyle.Builder(AnalogWatchFace.this) .setCardPeekMode(WatchFaceStyle.PEEK_MODE_SHORT) .setBackgroundVisibility(WatchFaceStyle.BACKGROUND_VISIBILITY_INTERRUPTIVE) .setShowSystemUiTime(false) .setStatusBarGravity(Gravity.BOTTOM) .setHotwordIndicatorGravity

Android wearable emulator can't connect with usb connected phone

做~自己de王妃 提交于 2020-01-04 09:19:28
问题 I'm trying to develop an android wearable application but I don't have wearable device. So I'm using an Android wearable emulator. I tried to connect with wearable emulator and phone. Phone connected with usb cable. My phone API version is 19. Wearable emulator version 20. I installed Android Wear application in my phone. I tried to connect emulator and device by ADB command. I'm not sure bluetooth need to open in mobile device because i think usb cable can connect to wearable emulator. Check

How does NodeAPI in Google Play Services work?

喜你入骨 提交于 2020-01-04 06:28:07
问题 I was trying to find the list of Nodes via getNodes() method in NodeAPI in GooglePlayServices. I have one LG G Live watch, one Samsung Gear 2 (Tizen OS) and one Google Glass. My LG G Watch has a connection with a companion APP (via GoogleAPIClient) on phone (Samsung S4). I have one application which checks if the watch is connected with phone, and if not connected, notify user about the same. I was using getNodes() method for this, and I connected glass and gear with phone with "My Glass" and

Android Wear Watch Face Vibrate With Screen Off

烈酒焚心 提交于 2020-01-04 06:21:43
问题 I have an Android Wear watch face that I'm trying to have vibrate the watch on the hour. It is working except in cases where the watch screen is off. According to the log statements, the handler method is called every minute and the chime method is called on the hour. If I'm debugging over bluetooth with the Moto 360, it works even with the screen off. If I install a release apk, it only vibrates if the screen is on. If the screen is off at the top of the hour, it wont vibrate until the

How to build Phonegap Build application for Android Wear?

无人久伴 提交于 2020-01-03 19:29:12
问题 I would like to build a pure HTML5 and Javascript based Phonegap application, that can be build with Phonegap Build and be able to deploy it to Android Wear. If this is possible at this moment, then what steps should be taken? My research so far: There is a notice on Phonegap Build forum about Ball Escape game, that is reported to be built with Phonegap and ready to be run on Android Wear. But, there are no details on how this was done except a meaningless comment by Phonegap Build rep Amir,

Smart Watch (Android & Apple) integration in Ionic Framework

僤鯓⒐⒋嵵緔 提交于 2020-01-02 05:39:06
问题 I am working on Ionic Framework from couple of months, I also checked out new Ionic version out 1.0.1. Actually I post this question regarding creating smart watch application in ionic framework. Until now I Google and I just found this cordova plugin which interact with Apple watch https://github.com/20steps/cordova-plugin-watch. This is only support for iOs. There are several cordova plugin available but I did't find any relevant answer or tutorial or blog using which I can learn smart