sony-smartwatch

Sony Smartwatch - update text in multiple TextViews simultaneously

故事扮演 提交于 2019-12-12 01:28:08
问题 I would like to update the text in the two TextViews on the Watch simultaneously. main_layout.xml <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" > <TextView android:id="@+id/text1" android:layout_width="220px" android:layout_height="50px" /> <TextView android:id="@+id/text2" android:layout_width="220px" android:layout_height="50px" /> </LinearLayout> Now I'm doing it this way: sendText(R.id.text1, "Hello world 1"); sendText(R.id.text2, "Hello world 2");

Android Wear Google Play Services

假装没事ソ 提交于 2019-12-12 01:24:54
问题 I developing an android wear app. While synchonization the data I have to use Google Play Services in order to update information between devices (phone and wear). I have some problems: While synronization Google Play Services have to update to the lates version. The original version is 8.7. But after sycning they become 9.8 ! Not the latest: 10.0.1! WHY? The phone have got the latest (10.0.1). So, it is not possible to sync the data. Will this problem appear for published APK file? Will

sony smartwatch 2 click event not being raised

你。 提交于 2019-12-12 00:26:36
问题 I'm guessing this is just me doing something a bit dumb. I have a load of TextViews in my layout file which I'm using to create a number pad. They are 0-9 like this: <TextView android:id="@+id/pad_number_7" android:text="@string/pad_number_text_7" style="@style/pad_button" /> The pad_button style includes: <item name="android:clickable">true</item> Then in my ControlExtension class' constructor I am calling a method called wireUpButtons() with code like this: mLayout = parseLayout((

how to show a screen if sony smartwatch is locked

牧云@^-^@ 提交于 2019-12-11 16:23:51
问题 How to show a screen in sony smartwatch 2 when screen is locked like we does with a call application. even if the screen is locked when we receive a call it shows upfront. I am able to show this when my app is open through a control api. but when my app is not open and some event happen in my mobile app i have to show the same in smart watch as well. I think we can do this with tunnel service but i dont know how. Pls help 回答1: To start a ControlExtension on SmartWatch2, there is a

Sony Smart Watch 2: How to prevent CLICK_TYPE_SHORT from being called after button long click?

微笑、不失礼 提交于 2019-12-11 10:27:01
问题 I use a ControlExtension for Sony SmartWatch 2 and I have a click-handler: @Override public void onObjectClick(final ControlObjectClickEvent event) { switch (event.getClickType()) { case Control.Intents.CLICK_TYPE_LONG: Log.i("onObjectClick", "long press"); break; case Control.Intents.CLICK_TYPE_SHORT: Log.i("onObjectClick", "press"); break; } } When I click on the button, I get press in my LogCat as expected. When I hold the button I get long press (just as I want it). But when I release the

v1.4.51 of Sony SmartWatch 2 app breaks Low Power Mode

£可爱£侵袭症+ 提交于 2019-12-11 08:46:36
问题 The Sony SmartWatch 2 interface app on Android received an update to version 1.4.51 on 22 Apr 2014, and it seems to have broken Low-Power Mode (LPM) for third-party apps. At the least, I have an app which was using LPM fine before the update, and it no longer works (the watch returns to its default watchface when the backlight goes off). My code hasn't changed, and there's nothing in logcat to indicate a problem. Further confirming that it's not my app, I've noticed that the same problem is

How to use Sensor API without ControlExtension?

隐身守侯 提交于 2019-12-11 08:05:08
问题 I am trying to make an app for the Smartwatch 2 that listens to the watch's accelerometer sensor and sends the values to another app running on the phone. Basically, its always listening to the accelerometer, whether the user is using the watch or not. As such, I'd like to do this using only the ExtensionService, and possibly the Notification API in the future to send the watch alerts based on the accelerometer. The problem is, I can't figure out how to properly add and listen to the Sensors

Kiosk Mode / Screen Pinning in Android wear

雨燕双飞 提交于 2019-12-11 01:13:00
问题 I am developing an Android wear app for Sony Smartwatch 3 with Android Lollipop and can't seem to find a way implement a working kiosk mode. I've looked everywhere but nothing seems to work. Also tried screen pinning but there isn't an option to do it on the watch (manually) and adding startLockStart() to my onCreate doesn't seem do to anything - I can still exit the app. Any help or confirmation that it is not possible will be greatly appreciated 回答1: Make sure you run Android L MR1 (Android

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

Sony Smartwatch SW2 - accelerometer output rate

微笑、不失礼 提交于 2019-12-10 00:30:33
问题 From the sample code of the SDK, I can read the accelerometer at 4-5Hz by using: registerListener(listener, Sensor.SensorRates.SENSOR_DELAY_FASTEST, Sensor.SensorInterruptMode.SENSOR_INTERRUPT_ENABLED); but it does not work when using registerFixedRateListener(). How to read accelerometer data from SW2 with higher rate? for example 10Hz, 20Hz... Thanks. 回答1: I'm able to read values on my SW 2 at 10Hz with disabled interrupts using sensor.registerFixedRateListener(mListener, Sensor.SensorRates