Will it be possible with sdk Android media

I read information about wearable sdk and what it can do now and in the future.

My question is: will the user be able to click something on the watch to notify my application of something on the smartphone, or will the user have to talk in the watch or receive a notification from my application in order to interact with my smartphone application?

thank

+4
source share
1 answer

You can have “actions,” so yes. For example, one of the actions of the Gmail application is that you can "Reply", "Reply all", etc., which will appear on your phone.

Android Wear, : // Intent mapIntent = Intent (Intent.ACTION_VIEW); Uri geoUri = Uri.parse( "geo: 0,0? Q =" + Uri.encode()); mapIntent.setData(geoUri); PendingIntent mapPendingIntent =       PendingIntent.getActivity(, 0, mapIntent, 0);

NotificationCompat.Builder notificationBuilder =        NotificationCompat.Builder()       .setSmallIcon(R.drawable.ic_event)       .setContentTitle(EVENTTITLE)       .setContentText(eventLocation)       .setContentIntent(viewPendingIntent)       .addAction(R.drawable.ic_map,               getString (R.string.map), mapPendingIntent);

. http://developer.android.com/wear/notifications/creating.html. . " "

+2

Source: https://habr.com/ru/post/1532903/


All Articles