373 questions
110
votes
5
answers
75k
views
How to request permissions from a Service in Android Marshmallow
In Android Marshmallow, permissions should be requested at runtime when they are needed, instead of all at once when an app is installed. However, I can only seem to request permissions from an ...
57
votes
9
answers
31k
views
Pairing Android and Wear emulators
I don't have an Android Wear, nor do I have a phone running 4.3. Is there a way to connect the JB 4.3 emulator and Android Wear emulator for app development?
32
votes
8
answers
39k
views
Google Play services out of date. Requires 11011000 but found 10289574
I've been strugling with this problem about week now. Been searching similar topics about this but still can't resolve my problem.
The Prolem is that when i'm trying to run my program on Polar m600 ...
25
votes
6
answers
19k
views
How to detect if android device is paired with android wear watch
I am creating an android wear app that extends push notifications. My app downloads approximately 10 images from a server when a push notification comes in and displays these additional images on the ...
20
votes
8
answers
15k
views
Android Wear app not installing through handset
I'm trying to get a wearable app installed through an Android handset using the 'Package with Android Studio method' found here but it's not working. The apk is never installed to the wearable device. ...
5
votes
3
answers
11k
views
Get Heart Rate from "Sensor" Samsung Gear Live
How do I get the heartrate from the attached sensor on the Samsung Gear Live
I just tried to list all Sensors by
SensorManager mSensorManager = (SensorManager) getSystemService(Context....
2
votes
2
answers
4k
views
Does Android Wear support direct access to the Internet?
As an android wear developer,
Can we directly access network through http request ?
In my case, I want to send a http request to get Yahoo Financial API stock data, but it always fails,
Same ...
47
votes
4
answers
132k
views
Fail to create Android virtual Device, "No system image installed for this Target"
Unable to create Android Virtual Device
i follwed this link.
I installed all ARM images for each Android more than 4.0.
I installed intel & MIPs as well.
But, still my AVD Manager is saying "NO ...
28
votes
5
answers
51k
views
Gradle error: configuration declares dependency which is not declared
I'm making my first android wear app, but I can't get Android Studio working.
First I got the error
"Project with path ':wear' could not be found in project ':mobile'.
This was resolved by adding "...
24
votes
5
answers
24k
views
Sending messages from Android Wear to host device
I'm writing a custom Android Wear application that's supposed to fire a one-off message to the connected host device (the phone). Digging through the API, I found the following tutorial that should ...
23
votes
7
answers
5k
views
Is there any way to detect if the clock is round?
Might be I missed something but is there any flag for knowing if the clock is round or square?
I could imagine that this is important if you want to design the background of the notifications.
22
votes
1
answer
10k
views
Android exact Alarm is always 3 minutes off
I have an app which uses the AlarmManager to regularly wake up the phone at full hour and send a message to an Android Wear watch which than makes a short vibration. I have two users with a Samsung ...
3
votes
1
answer
8k
views
Android Wear: How to get raw PPG data?
I am able to access Heart Rate of User using Optical Heart rate Sensor using SensorEventListener:
sensorManager.registerListener(this,
sensorManager.getDefaultSensor(Sensor....
36
votes
9
answers
26k
views
Not able to connect Android Wear Emulator with Device
I am not able to connect Android Wear Emulator with my device.I have HTC One device which has 4.4 (KitKat OS).
I follow below link :
Setting up Android Wear
But, when I execute the line adb -d ...
32
votes
4
answers
37k
views
"No, missing feature: WATCH" when I try to run my smartphone app with wear app?
I have a smartphone app with a wear app that has been packaged inside of it, similar to the first two steps of this section:
https://developer.android.com/training/wearables/apps/packaging.html#...
21
votes
7
answers
12k
views
Android Wear App not installed
we release our first Wearable Application today but sadly this one isn't get installed automatically as it should.
We double checked the APK and the wearable apk is present but never hits the watch. ...
7
votes
1
answer
1k
views
WearListenerService onDataChanged strange behavior
I want to make bidirectional data transfer between Android Wear and Handheld.
All seems to be good except triggering onDataChanged on Handheld. It triggers only then I plug in\out USB cable, connected ...
7
votes
4
answers
7k
views
Direct internet connection on Android Wear?
I tried to build an app showing some pictures from the internet.
I used a function, which works great on my Phone (Galaxy S3 - Android 4.3) but on the watch i get a java.io.EOFException exception.
...
4
votes
2
answers
3k
views
Issue with Google Fit API on Android Wear
I'm trying to implement the Google Fit API into my android wearable application.
I have followed the GoogleFitAPI online steps with registering for an OAuth ID.
When trying to connect, I get an ...
3
votes
2
answers
3k
views
Android Wear Watchface Settings on host
I currently have an android wear watchface developed. I however would now like to create a settings section on the host app that would allow the user to customize the watchface. I am new to the ...
52
votes
3
answers
55k
views
Android compile error; Java plugin has been applied, not compatible with android
So I've made a wearable application where I can control a robot-car with the buttons on screen with the MessageListenerService. After trying to build the project, I had some problems where it asked me ...
20
votes
3
answers
15k
views
How to disable the android wear back swipe?
I am creating a Android Wear app that has an touch area. The user is suppose to be able to move it's finger in all directions over the screen (Think touchpad on your laptop). However the back swipe ...
18
votes
7
answers
10k
views
WearableListenerService, onDataChanged() is not called
I followed the tutorial to invoke a Wearable activity from phone, posted here How to send notification from handheld to wear to open Activity on wear device. However, I grab the source code from the ...
13
votes
4
answers
26k
views
How to access heart rate sensor in Android Wearable?
I am having problems accessing heart rate sensor on Moto 360.
I tried following things :
Sensor mHeartRateSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE);
mSensorManager....
9
votes
5
answers
4k
views
WearableListenerService onMessageReceived is not called on device
I am trying to send a simple message from my Android wear app to my phone app using the Wearable.MessageApi.
This is my onConnected callback from GoogleApiClient on the Wear device.
final ...
2
votes
3
answers
342
views
Different text for the wear device and the mobile device
Is it possible to have a notification that shows a different text (content title and content text) in the Android wear device and in the mobile device?
1
vote
1
answer
726
views
Custom UI for Android Wear Notifications
Hii I want to create Custom UI for android wear notification, and not AW app.
Please suggest if there are any libraries or anything available for this.
1
vote
2
answers
530
views
sendMessage doesn't work properly (Wearable)
If I'm sending some bytes using sendMessage from Huawei p9 (Android 6.0) into Android Wear (Sony) the messages are not delivered if the screen of handheld device is turned off. The notifications ...
0
votes
1
answer
9k
views
Button click in android wear [closed]
I have created android wear activity with a small button (A shortcut to activity in my mobile app). Is it possible to send a bundle request to my main app?
If so how to implement the click listener?
...
28
votes
2
answers
10k
views
What's the best practice for sharing classes between a Wear and Android app?
I'm using a class that I serialize in my Android Phone app, and deserialize in my Android Wear app. They are both in the same Android Studio Project, and are deployed as one.
How can I share the ...
23
votes
4
answers
6k
views
Wear App and with custom build type with applicationIdSuffix
I have an app where I'd like to add an Android Wear app extension. The main app has three build types (debug, beta and release). Beta builds have an applicationIdSuffix which allows me to install the ...
19
votes
1
answer
8k
views
Android: How to get Google Fit data from Wearable device?
I'm following the same steps described here (the Google Fit client connection part is working fine).
final DataType dataType=TYPE_STEP_COUNT_DELTA;
DataSourcesRequest requestData = new ...
18
votes
4
answers
2k
views
Android wear application packaging fails with flavours
I have an application that includes a wear app. All works fine on debug tested with a real device. I can alse create the release apk that packs the wear apk inside it. But only if there is only one ...
18
votes
3
answers
23k
views
Is it possible to create an Android Wear app with react native
I have had a play with react native creating ios apps but have not tried android yet. With android you also get 'android wear' for watches etc, will react native work creating apps for those devices?
17
votes
3
answers
6k
views
Screen record Android Wear
When executing:
adb -s localhost:4444 shell screenrecord /sdcard/dcim/rec.mp4
I get:
ERROR: unable to create video/avc codec instance
WARNING: failed at 280x280, retrying at 1280x720
ERROR: unable ...
16
votes
4
answers
7k
views
Unable to push data to android wear (Emulator)
I have been trying to push data to the android wear emulator. But all in vain. My listener on the emulator is not receiving any calls whatsoever. If anyone else has tried working on wear and pushing ...
14
votes
2
answers
8k
views
Android Wear generate two apk
I just created my first android wear app. I have two modules, mobile and wear. I have on my mobile module a dependency that points to the wear module as described on the documentation. When I generate ...
12
votes
2
answers
23k
views
Error: more than one library with package name 'com.google.android.gms'
I'm using Android Studio 0.8.2, and created a project with Android 4.1 and Android Wear 4.4. I need to integrate it with Google Play Services.
I'm trying to follow the Google Play Services setup ...
12
votes
2
answers
4k
views
Android Wear Notification is not displayed if FLAG_NO_CLEAR is used
If flag "FLAG_NO_CLEAR" is used the notification gets not displayed on the Android Wear.
Does anyone know why or any workaround? I didn't find any information in the documentation.
I need the flag "...
10
votes
1
answer
6k
views
Android Wear Custom Voice Actions
I'm making an app that will work with Android Wear,
And I wanted to implement a command into Google's "Ok Google" option.
I saw this page:
http://developer.android.com/training/wearables/apps/voice....
7
votes
1
answer
3k
views
How to display clear background image on Android Wear notification?
As far as I can work out, there are two ways to set the background image for a notification in Android Wear. For the record, both start with:
Bitmap bitmap;
Notification.Builder bob = new ...
6
votes
3
answers
4k
views
android wear - eclipse : not recognizing support library
Im trying to develop with the new Wear sdk.
I have downloaded everyting needed including support libraries and set up android wear to go.
the problem I have is that the project cant find the ...
6
votes
2
answers
5k
views
Android Studio Wear App Error - Unable to Open PNG
I'm getting the following error after creating a new wear app. I'm also getting this in the example app found in the sdk folder.
C:\Users\Tom\AppData\Local\Android\android-studio1\sdk\samples\android-...
6
votes
3
answers
1k
views
My Wear OS app always rejected because it doesn't show scrollbar
In my Wear OS app, I used a ScalingLazyColumn to implement the List. I am also showing the Scrollbar using PositionIndicator.
The reason the app is rejected is always the same. It's because the "...
5
votes
1
answer
6k
views
Android Wear Data Items
I'm trying to figure out how to sync some data from the phone to the Android Wear device and I've read the article on developer.android.com on Data Items however I'm still not clear on exactly how to ...
5
votes
2
answers
2k
views
Huawei Watch 2 NFC FEATURE not available?. Android Wear 2.0
In short:
On the Huawei Watch 2 it seems like NFC is available and enabled but NFC_FEAUTURE is not, hence nfc is not working properly.
Trying to develop the ability to simply read and display NFC ...
4
votes
4
answers
8k
views
Is there an NFC API for the Smartwatch 3 (SWR50)
Just to be sure and have clarification of that at first, is the NFC of the Smartwatch 3 just an embedded tag or is it a theoretically fully functioning NFC-chip?
Hoping it's not just a tag, we want ...
4
votes
2
answers
4k
views
Problem with BasicTextField in Jetpack Compose on Wear OS
I'm new in Compose and I'm having a problem with input text field on Wear OS.
The problem is that I can't get soft keyboard to work as it usually does on Android. Also, when I tried to implement the ...
3
votes
2
answers
1k
views
How to create an Android Wear app with the note-taking voice action?
I can't seem to figure out how to create an Android Wear application which would allow me to use it to take notes via built-in voice actions. I declare the intent filter as stated in Adding Voice ...
2
votes
1
answer
2k
views
Heart Rate Sensor not found (LG Watch Urbane)
I'm trying to access to the heart rate sensor of my LG Watch Urbane using this code on MainActivity.java:
mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
mHeartRateSensor = ...