I am making an extension for my android app. I can get the notification to android wear without a problem with all the data I want. I have lat and long for every POI for which im sending a notification, and i want to add a feature "Navigate to" inside android wear notification, that would take this coordinates and ran a google navigation on smart watch. Is this possible? Can u provide some example or documentation. Thanks
This is a sample code that i use in my app for running google maps on phone by clicking "Open on map" button on my android wear.
Intent mapIntent = new Intent(Intent.ACTION_VIEW);
Uri geoUri = Uri.parse("geo:0,0?q=" + chapter.getLatitude() + "," + chapter.getLongitude());
mapIntent.setData(geoUri);
PendingIntent mapPendingIntent =
PendingIntent.getActivity(context, 0, mapIntent, 0);
...
.addAction(R.drawable.ic_map_white_24dp, "Open on map", mapPendingIntent)