Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Intent actionIntent = new Intent(this, WearActivity.class);
  2. PendingIntent actionPendingIntent = PendingIntent.getActivity(this, 0, actionIntent, PendingIntent.FLAG_UPDATE_CURRENT);
  3. NotificationCompat.Action wearableAction = new NotificationCompat.Action.Builder(R.drawable.ic_launcher, getString(R.string.label_show_details), actionPendingIntent).build();
  4. new WearableExtender().addAction(wearableAction))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement