You can use this code: 

 private void RedFlashLight()
    {
    NotificationManager nm = ( NotificationManager ) getSystemService( NOTIFICATION_SERVICE );
    Notification notif = new Notification();
    notif.ledARGB = 0xFFff0000;
    notif.flags = Notification.FLAG_SHOW_LIGHTS;
    notif.ledOnMS = 100; 
    notif.ledOffMS = 100; 
    nm.notify(LED_NOTIFICATION_ID, notif);
    }


Instead of using ARGB value as the example show, you can use int property inside android.graphics.Color class to get the color as well

Changing LED color for notifications
The question title may be misleading, but I have what I think is a common issue for Android newbies: I have an activity with a LinearLayout, and I have an EditText at the bottom of the screen. When I click on it, the keyboard appears over the EditText, hiding it while typing. Is there a way to achieve what most user expect, that is the activity gets scrolled down until the EditText becomes visible again?
