title: How change action icons dynamically in android wear
body: <p>I have created a android wear app which support my handheld application.
  The android wear app showing notifications and related actions top perform.</p>
  
  <p>I have created android wear notifications and added two actions for pause,resume and stop</p>
  
  <p>I need to replace the pause action by  resume action dynamically, that means if user press pause action need to change to resume action.</p>
  
  <p>My code is </p>
  
  <pre><code>Intent pauseIntent = new Intent(getApplicationContext(), PauseActivity.class);
           PendingIntent pausePendingIntent = PendingIntent.getActivity(getApplicationContext(),
                   0, pauseIntent, PendingIntent.FLAG_UPDATE_CURRENT);
  
           Intent stopIntent = new Intent(getApplicationContext(), StopActivity.class);
           PendingIntent stopPendingIntent = PendingIntent.getActivity(getApplicationContext(),
                   0, stopIntent,  PendingIntent.FLAG_UPDATE_CURRENT);
  
  
           Notification notification =
                      new NotificationCompat.Builder(getApplicationContext())
                              .setSmallIcon(R.drawable.icon)
                              .setContentTitle("Swipe up to view")
                              .setDeleteIntent(deletePendingIntent)
                              .extend(new WearableExtender()
                                      .setDisplayIntent(displayPendingIntent))
                              .addAction(R.drawable.pause_btn, "Pause", pausePendingIntent)
                              .addAction(R.drawable.stop_btn, "Stop", stopPendingIntent)
                                      .build();
  </code></pre>
  
  <p>My requirement is When user clicks on the pause button i need to change that by Resume Icon.</p>
  
  <p>Advance thanks for all...
  My screen looks like</p>
  
  <p><img src="https://i.stack.imgur.com/fuH1Y.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/fYIEN.png" alt="enter image description here"></p>