title: android led notification code
body: <p>I'm trying to make the Led notification on my phone blink in a certain order and in different colors.</p>
  
  <pre><code>package com.example.led1;
  
  
  
      import android.app.Activity;
      import android.app.Notification;
      import android.app.NotificationManager;
      import android.content.Context;
      import android.os.Bundle;
      import android.support.v4.app.NotificationCompat;
      import android.view.Menu;
      //import android.graphics.Color;
  
      public class MainActivity extends Activity {
  
      @Override
  
  
  
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
      //  setContentView(R.layout.activity_main);
  
          Notification notf = new NotificationCompat.Builder(this)
          .setAutoCancel(false)
  
            .setLights(0xffff00, 1000, 100)        
            .setLights(0xff0000, 5000, 100)
            .setLights(0x0000FF, 10000, 100)
            .build();
  
      NotificationManager mNotificationManager =  (NotificationManager)                   getSystemService(Context.NOTIFICATION_SERVICE);
      mNotificationManager.notify(2, notf);
  
  
  //  new Timer().scheduleAtFixedRate(notf, 100,5000);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
  }    `
  </code></pre>
  
  <p>When the app runs on my phone it only blinks the last color of the three <code>setLights</code> command. How can I run those three <code>setLights</code> in that order and maybe add a while loop ?</p>