wear-os

Using Sony Camera API on AndroidWear

会有一股神秘感。 提交于 2019-12-06 16:11:16
I want to create an app that can start and stop recording from a Sony AS100VR camera using camera remote API. I can get the same working from my nexus using a direct Wifi connection, but when I establish a direct wifi connection from my Sony smartwatch, it fails at the SSDP detection stage. It's definitely connected to the camera, SSID over Wifi, but it can't detect it. I have tried playing with retries and timeout values, but I have sort of run out of ideas. it's falling into the catch catch (InterruptedIOException e) with a java.net.SocketTimeoutException Any suggestions gratefully

onDataChanged is not getting called

爷,独闯天下 提交于 2019-12-06 15:25:59
I am developing demo application for wear and handheld. When wear starts it sends request to handheld and get list along with time stamp. and while we click on any list item, it sends changes to handheld again. This works perfectly But not i want to sends list while on click of device list is performs. in device activity thread class SendToDataLayerThread extends Thread { String path; DataMap dataMap; SendToDataLayerThread(String p,DataMap d){ path = p; dataMap = d; } @Override public void run() { PutDataMapRequest putDMR= PutDataMapRequest.create(path); ArrayList<Job> arrlist=new ArrayList<>(

Voice input with Android Wear Preview

前提是你 提交于 2019-12-06 14:56:39
I'm trying the new library to develop Android apps with wearable device (the Android Wear). I understood how the library works, now I'm trying to develop a notification for the code I found in this tutorial , but when I simulate a notification with a simply button it doesn't do nothing and I don't know why... I post here my code I hope you can help me to understand why it's not working: public class MainActivity extends Activity { private NotificationManager mNotificationManager; private int notificationID = 100; private int numMessages = 0; protected void onCreate(Bundle savedInstanceState) {

NFC Android wear (Huawei watch 2.0)

为君一笑 提交于 2019-12-06 14:31:11
问题 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

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

陌路散爱 提交于 2019-12-06 12:29:16
问题 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 回答1: 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. 回答2: 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

android wear gridviewpager onClick Listener

守給你的承諾、 提交于 2019-12-06 09:22:05
I'm developing a simple application in which youb have different spots placed on google map. When I click on a spot I get its details which are displayed in a GridViewPager . For now my application is based on the GridViewPager sample available with the sdk. Here is my layout for the spot details (nothing fancy) <android.support.wearable.view.GridViewPager xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent" android:keepScreenOn="true"/> My problem now is that I'm not able to detect a Click

Trouble setting up Hello, World watch app in Android Studio

£可爱£侵袭症+ 提交于 2019-12-06 07:21:50
问题 When deploying the wear version of the included Hello, World watch app in Android Studio I get this error: Failure [INSTALL_FAILED_OLDER_SDK] Update: Removing details about trying a hacked version of L from the Reddit post as that was not a solution for me and it may have created more confusion. mobile/build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 20 buildToolsVersion "20.0.0" defaultConfig { applicationId "com.example.erikbabel.myapplication" minSdkVersion

Moto 360 Malfunctioning Gyroscope After Android 5.1 Update

孤人 提交于 2019-12-06 07:15:40
问题 Since the Android 5.1 update (or not sure if this was always the case, but I don't suspect it was), the Moto 360 no longer reports useful gyroscope data. I've verified this abnormal behavior across three different Moto 360 devices. Here is a link to a Google Spreadsheet that contains raw sensor data (capturing my arm flailing motion) for the Moto 360 on page 1, and then the sensor data for the G Watch R on page 2. Note that sensorType 0 is for gyroscope, and 1 is for accelerometer. https:/

Android Wear: how to store image data into watch

末鹿安然 提交于 2019-12-06 07:09:23
问题 I'm looking for how to store image data into my app on Android Wear. What I want to do are followings: Take a photo and send it to my watch. (via DataMap) My watch displays the photo. When my app on Android Wear restarts, the app displays the photo taken before. For now, the photo is cleared after restart the app. I want to store the photo. Are there any ways to save the photo into the watch. Thanks. [UPDATE1] I tried to save an image by using Environment.getExternalStorageDirectory() But

Android Wear + Phone App on Google Play Developer Console

£可爱£侵袭症+ 提交于 2019-12-06 06:10:46
I am learning Android Wear these days and already worked on Android mobile apps. So I want to know if I publish my android wear and phone app from Google Play Developer Console. So in that case Do I need to add it as different application for android phone and wear app on Google Play ? Thanks in advance No. the Wear app is packaged inside the Phone app. Once installed on the phone, the phone wil "sync" with the Wear device and send the wear.apk to the Wear device. That meaning, it's only 1 app in the Google Play dev console. If you start a new Wear Project template on AndroidStudio you'll see