watch-face-api

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 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 do you debug Android's watchface?

混江龙づ霸主 提交于 2019-12-25 16:30:12
问题 For some reason, I can't seem to output anything in Logcat for the watchface example that you can pull from Github's repo. I've enabled the development features in the watch emulator. I have the latest Android Studio. When I start a brand new project, I can output to Logcat without a hitch. What am I doing wrong? 回答1: I know this is an old question, but in case somebody is still coming across this looking for an answer: I assume you're talking about Googles Watchface example? That example

How do you debug Android's watchface?

心已入冬 提交于 2019-12-25 16:30:08
问题 For some reason, I can't seem to output anything in Logcat for the watchface example that you can pull from Github's repo. I've enabled the development features in the watch emulator. I have the latest Android Studio. When I start a brand new project, I can output to Logcat without a hitch. What am I doing wrong? 回答1: I know this is an old question, but in case somebody is still coming across this looking for an answer: I assume you're talking about Googles Watchface example? That example

Where to declair the alarm manager for updating a watchface in ambient mode?

懵懂的女人 提交于 2019-12-11 13:59:58
问题 I'm trying to add an AlarmManager to update a watch face on half minute intervals. This is for a ternary clock. This is my first time programming with Java or android studio. I'm following a guide at https://developer.android.com/training/wearables/apps/always-on.html The guide says to "declare the alarm manager and the pending intent in the onCreate() method of your activity" Should I use @Override public Engine onCreateEngine() { return new Engine(); } or @Override public Engine

Starting an Activity from Android Wear Watchface

人走茶凉 提交于 2019-12-11 07:56:25
问题 I am trying to start an activity from a watchface in Android Wear on a click using: Intent myIntent = new Intent(this, com.jorc.android.wearable.watchface.watchface.MainActivity.class); getApplicationContext().startActivity(myIntent); However, I get this error. Error:(564, 39) error: no suitable constructor found for Intent(DigitalWatchFaceService.Engine,Class<MainActivity>) constructor Intent.Intent(String,Uri) is not applicable (argument mismatch; DigitalWatchFaceService.Engine cannot be

Get height of peek card before any are displayed?

故事扮演 提交于 2019-12-11 04:18:21
问题 According the the API docs, all peek cards will only be "a single line tall" when PEEK_MODE_SHORT is set. So this means every peek card will occupy a constant of screen real estate for a particular device. I plan to leverage this on my watch face by placing the most important info in the area that's guaranteed not to be covered by a card (and the non-critial info in the space which could be covered by a card). The problem is I don't know how to determine how much space the peek cards take

Packaging wearable apps

て烟熏妆下的殇ゞ 提交于 2019-12-10 17:26:59
问题 I'm in the last stage of developing a watchface service for the android wear devices. The problem is the following: Every time i try to sign my app, two files are being generated: wear-release.apk and mobile-release.apk , there is no other apk. Shouldnt the apk name be my Packagename of the projectdirectory? -Because i tried opening both files with my compatible Smartphone (with a weardevice attached), which always ends instantly in a phrasing error. Thinngs i have noticed: There is no

Watch Face with additional styles in Gear S2 on Tizen SDK

末鹿安然 提交于 2019-12-06 13:28:08
问题 I'm working on developing various watch faces for the Gears S2 under the Tizen Web SDK. I've noticed some of the preinstalled watch faces have a "Style" button at the bottom of the watch chooser screen. When this button is tapped, a page full of options appears enabling the user to change the color, as well as other watch face options. I cannot find any API that allows me to put this same button on my watch faces in order to provide a color changing UI. Anyone here have any ideas? I've