wear-os

android wear-debug.apk shows parsing error

浪尽此生 提交于 2019-12-11 08:15:48
问题 i placed configuration as wear and run it into emulator, then i found apk in my project output folder. i emailed that one, at the time of installation on wearable watch it shows there was a error while parsing the package. any one suggest me Here is my manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.peterfriese.wearablelistviewsample" > <uses-feature android:name="android.hardware.type.watch" /> <application

Android Wear App not showing up in “Start…” menu on watch

眉间皱痕 提交于 2019-12-11 08:12:05
问题 I have added a wear module to my Android Application in Android Studio. In the mobile module, I have specified this line in the mobile applications build.gradle: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.google.android.gms:play-services:+' compile "com.android.support:support-v4:20.0.+" wearApp project(':wear') } Also, here is my AndroidManifest.xml for the wear module. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android

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

Android Wear - Gradle dependency issues “Cannot resolve symbol”

允我心安 提交于 2019-12-11 06:54:42
问题 I followed the instructions here to build a simple app with mobile and wear components in Android Studio. I have the following code in my mobile activity, trying to call MyWearActivity which is in wear module: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_my); Intent intent = new Intent(this, MyWearActivity.class); startActivity(intent); } My mobile build.gradle file has the following dependencies: dependencies {

Android Wear Emulator: How to debug on Emulator?

泄露秘密 提交于 2019-12-11 05:55:14
问题 I have a simple application where in I am sending some message to Wear and receiving some from wear. Now how do I test this when I just have a real handheld device with a emulator? Whatever I do, the emulator does not connect to the device. In the Android Wear app on my mobile, it always says Target: disconnected. I have tried all permutations and combinations of following commands: adb forward tcp:4444 localabstract:/adb-hub; adb connect localhost:4444 adb -d forward tcp:5601 tcp:5601 回答1: I

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

Receiving voice input from an Android wearable emulator

余生长醉 提交于 2019-12-11 03:28:12
问题 How do we receive voice input from an Android wearable emulator? 回答1: Voice input is disabled in the Android Wear preview emulator image. The voice engine just returns a string, so you could use that for testing purposes. Thanks, +Ali Naddaf. 来源: https://stackoverflow.com/questions/22513974/receiving-voice-input-from-an-android-wearable-emulator

GoogleApiClient Node is null

元气小坏坏 提交于 2019-12-11 03:24:56
问题 I'm writing an Android Wear app and I want to make the wear device start an intent on the phone when a button is clicked. To do this, I've first set up the connection to the GoogleApiClient like this googleApiClient = new GoogleApiClient.Builder(this) .addApi(Wearable.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); googleApiClient.connect(); Then on button click the function sendMessage is run. This is the function private void sendMessage(){ if(mNode != null

Android Wear Emulator show Error SERVICE_VERSION_UPDATE_REQUIRED for Google Play services

北慕城南 提交于 2019-12-11 03:23:41
问题 I am testing android wear app on Wear Emulator and using eclipse to develop. In wear app there are code as below in onCreate: mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(new GoogleApiClient.OnConnectionFailedListener() { @Override public void onConnectionFailed(ConnectionResult result) { Log.d(TAG, "onConnectionFailed: " + result); } }).addApi(Wearable.API).build(); mGoogleApiClient.connect(); When I run this on Wear emulator

Android Wear audio

我们两清 提交于 2019-12-11 03:18:27
问题 I am fairly new to Android, but i have the knowledge of development and Java language. I inherited an app that needs to include now android wearable companion. I have managed to make simple app to be started, send message back and forth with the phone app. The issue i am facing right now is how to pass the audio from the wearable microphone back to the app to be processed. I manage to make a timer 4 seconds to create the buffer of the audio, which i found on another question here, but now i