title: Android Wear notification prevent blinking icon when updating
body: <p>I can't seem to be able to create an Android Wear notification that updates with out blinking the app icon whereas the same code works fine on an Android phone.</p>
  
  <p>Most referenced solutions talk about updating the same notification, use <em>setAlertOnlyOnce</em>, keeping the <em>ID</em> or <em>when</em> the same. However, whatever I do, every time the notification is updated it blinks (most noted by the App Icon).</p>
  
  <p>As suggested here <a href="https://stackoverflow.com/questions/25499834/android-wear-timer-like-notification-card-on-wear-device">Android Wear: Timer like notification card on wear device</a> you can use <em>setHintHideIcon(true)</em> to hide the app icon, which hides the blinking part, however in the limited world of Android Wear Notifications the app icon plays a large part in the branding of the application.</p>
  
  <p>If you want a timer, you can use <em>.setUsesChronometer(true)</em> and let the system update the timer which works perfectly. Unfortunately if you want to update something else than time (like steps or messages received count) it seems to me you're out of luck.</p>
  
  <p>Below you can find code that works fine when run as a phone app, but blinks when run as a wearable app.</p>
  
  <p>Commented line below to demonstrate that the notification still blinks (when running on wear, not the phone) that the notification still blinks when posting an unchanged notification on the wearable. Uncomment to update the notification again.</p>
  
  <pre><code>mNotification = buildNotification(WearMainActivity.this);
  </code></pre>
  
  <p>Therefore my question is if anyone has any further idea's we can explore to keep the notification from blinking or if we can write this down as an Android Wear bug?</p>
  
  <pre><code>public class WearMainActivity extends Activity {
  
      public final int NOTIFICATION_ID= 1;
      public Notification mNotification;
      public int count;
      public long when;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          count = 0;
          when = System.currentTimeMillis();
          mNotification = buildNotification(WearMainActivity.this);
          postDelayedHandler();
          finish();
      }
  
      private void postDelayedHandler(){
  
          new Handler().postDelayed(new Runnable() {
              public void run() {
                  count++;
                  mNotification = buildNotification(WearMainActivity.this);
                  NotificationManager notifyMgr = ((NotificationManager) getSystemService(NOTIFICATION_SERVICE));
                  notifyMgr.notify(NOTIFICATION_ID, mNotification);
                  postDelayedHandler();
              }
          }, 1000L);
      }
  
      private Notification buildNotification(Context context){
          return new Notification.Builder(context)
                  .setSmallIcon(R.drawable.ic_launcher)
                  .setContentTitle(context.getString(R.string.app_name))
                  .setContentText("Count: "+count)
                  .setWhen(when)
  //                .setOngoing(true) //Don't do this, adds "Mute app" action
                  .setOnlyAlertOnce(true)
                  .setPriority(Notification.PRIORITY_MAX)
                  .extend(new Notification.WearableExtender()
  //                        .setHintHideIcon(true) //Hides the icon, so kinda hides the blink
                  )
                  .build();
      }
  }
  </code></pre>
  
  <p>Tested on:<br/>
  Wearable: Moto 360 (4.4W2) Wear Emulator (5.0.1)<br/>
  Phones: Galaxy Nexus (4.3) and Nexus 5 (5.0.0)</p>
  
  <p>Occurs: When running as a Wearable app or as phone notification displayed on Wearable. Works perfect on phone.</p>
  
  <p>Referenced questions:<br/>
  <a href="https://stackoverflow.com/questions/19025056/how-can-i-avoid-blinking-notification-update-while-changing-button">How can I avoid blinking notification update while changing button</a><br/>
  <a href="https://stackoverflow.com/questions/6406730/updating-an-ongoing-notification-quietly">Updating an ongoing notification quietly</a><br/>
  <a href="https://stackoverflow.com/questions/11512986/how-to-properly-update-a-notification-post-api-11">How to properly update a notification post api 11?</a></p>