FAQ Database Discussion Community

How to show the same layout in android wear and mobile at same time

I have a layout of some textviews.The textviews are changing depend on a timer. I need to show this layout in mobile and android wear at same time.Please suggest me a solution...

Android Wear Api 21 Unable To Install App

Hi this is just a simple question... I have Android Wear and a Samsung Galaxy Note 4 4.4Kitkat Api 19. I tried to run a Android Wear application but it give me error Api21>Api19 is there a way to edit Api Level and compile it?

Sending DataMap in a background service android

I'm trying to send the content of a DataMap from an Android device to a wearable. It works fine when the app is in the foreground on my app but once I lock the mobile device it gets stuck at the pendingResult.await() and the wearable doesn't receive any data where...

Sending Byte array to Galaxy Gear Live from the mobile

I have been developing an app to read serial data from the micro usb port of the Samsung S4 using OTG cable. Now I want to send these data to the Android wear app runs on Galaxy Gear Live. The problem I face is that, I know we can send...

Send data and wait for the answers with the Wearable Data Layer API

I have a wearable device from which data is sent to a handheld device wrapped in a DataMap object. On the handheld device I implemented a listener service that extends WearableListenerService implemented in this way: public class ListenerService extends WearableListenerService { private static final String TAG = ListenerService.class.toString(); private static...

Android Wear communication with wearable not working

I have a smartphone app which is working. I now want to extend it so that there is also a wearable part. I tried to get everything together from multiple sources (https://www.binpress.com/tutorial/a-guide-to-the-android-wear-message-api/152, and https://developer.android.com/training/building-wearables.html) but I can't seem to send my data to my wearable. What am I doing wrong?...

Cannot send an Asset to an Android Wear device

I'm trying to send an Asset to my Sony SmartWatch3. I followed the Google's documentation (https://developer.android.com/training/wearables/data-layer/assets.html) but it doesn't work. My handheld activity's code : public class MainActivityHandheld extends ActionBarActivity { private GoogleApiClient mGoogleApiClient; private static final String MY_KEY = "com.example.andy.key.mykey"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_activity_handheld); Button...

Establish a permanent connection with a wearable, or as and when needed?

I have a permanently running service app on the handset, one of the things it does is detect when there is an incoming phone call and send a message and some data to a companion app on a wearable device. I'm wondering whether the app should establish the API to...

Permission Denial when onMessageReceived should be called

I'm following this tutorial and got a WearableListenerService. I just implemented the onMessageReceived method and didn't change anything else. The entry for the service looks like this: <service android:name=".WearableRemoteCommandListener" android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" android:enabled="true" android:exported="true"> <intent-filter> <action android:name="com.google.android.gms.wearable.BIND_LISTENER"></action> </intent-filter> </service> The...

How to lauch the app in mobile while a button clicked in wear watch?

i am new in developing android wear applications. I would like to know how to do an action in mobile device by receiving a button click in android wear watch? For example a button in wear application to start activity in mobile device.

android - service for interaction with wearable

I tried creating a service (which extends WearableListenerService) which should send as well as receive data with wearable. But when i created GoogleApiClient object in that service, it failed with NullPointerException. public class MyService extends WearableListenerService{ private GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this) .addApi(Wearable.API) .build(); private final String MESSAGE_PATH = "/message";...

How to call saved dataItem in Android Wear?

I'm creating a watchface that can have the color customized through an App that is on the phone. I've seen examples use the DataApi and DataItem to save/load settings. The problem I am encountering is that when I change to a different watchface and change back, all the values inside...