I am basically just experimenting with Android development, and a couple of days ago I came across this app called "Go SMS Pro", which, among other things, can set up notifications in different colors (blue, green, orange, pink and light blue). So, I have tried to do this myself in my own app, however I cannot change neiher the color nor the blinking internal of the LED. I currently use this code:

public class MainActivity extends Activity {
  static final int NOTIFICATION_ID = 1;

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Button button = (Button) findViewById(R.id.button);
    button.setOnClickListener(buttonOnClick);
  }

  public OnClickListener buttonOnClick = new OnClickListener() {

    @Override
    public void onClick(View v) {
      String ns = Context.NOTIFICATION_SERVICE;
      NotificationManager mNotificationManager = (NotificationManager) getSystemService(ns);

      Notification notification = new Notification(R.drawable.icon, "Hello", System.currentTimeMillis());
      notification.flags = Notification.FLAG_SHOW_LIGHTS | Notification.FLAG_AUTO_CANCEL;
      notification.ledARGB = Color.BLUE;
      notification.ledOnMS = 1000;
      notification.ledOffMS = 300;

      Context context = getApplicationContext();
      CharSequence contentTitle = "My notification";
      CharSequence contentText = "Hello World!";
      Intent notificationIntent = new Intent(MainActivity.this, MainActivity.class);
      PendingIntent contentIntent = PendingIntent.getActivity(MainActivity.this, 0, notificationIntent, 0);

      notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);

      mNotificationManager.notify(NOTIFICATION_ID, notification);
    }
  };
}


But as I said, it doesn't work the way I want it to; instead it just blinks in regular green with the default delay, and not the one I have set in my code.

Can anyone see what is wrong with my code, or know if I have to do something else to achieve this?


Question: Why doesn't my MacBook recognize the original HD any longer?
Answer: If the original drives does work in an external case but not internally than patrix has the right idea.

We know the old drive is good as it works in an external case
We know the SSD does not work at all because it doesn't work internally or in the Mac.

In both of those cases drives are not working internally, one known bad and one known good. 

Unfortunately that points to a problem with the MacBook itself. It could be a loose connector (at the drive end or the motherboard end) And by connector I mean data and power, check both, end to end. Look for breaks, bends, crimps (that are not part of cable routing). Look for dirty or obstructed contacts. Blow some canned air into the contacts. Ifixit.com has come really great take apart instructions for just about every recent model of Mac/iPad/iPhone. Follow along with there instructions and pictures and look for differences in what theirs looks like and what yours looks like.

Logic dictates that the problem is inside your MacBook. the problem now is finding out where and then how to fix it.