title: Notification Sound Stops on Click
body: <p>I use the following code to add the notification, and in the notification I add two features, one is Sound and other is flashing light.</p>
  
  <pre><code>String ns = Context.NOTIFICATION_SERVICE;
                  NotificationManager mNotificationManager = (NotificationManager) getSystemService(ns);
                  int icon = R.drawable.icon;
                  CharSequence tickerText = "Hello";
                  long when = System.currentTimeMillis();
                  Notification notification = new Notification(icon, tickerText, when);
                  RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.cutomnotification);
                  contentView.setTextViewText(R.id.textView1,"Custom");
                  notification.contentView = contentView;
                  Intent notificationIntent = new Intent(v.getContext(), MyClass.class);
                  PendingIntent contentIntent = PendingIntent.getActivity(v.getContext(), 0, notificationIntent, 0);
                  notification.contentIntent = contentIntent;
                  notification.sound=android.provider.Settings.System.DEFAULT_RINGTONE_URI;
                  notification.ledARGB = 0xff00ff00;
                  notification.ledOnMS = 300;
                  notification.ledOffMS = 1000;
                  notification.flags=Notification.FLAG_INSISTENT|Notification.FLAG_SHOW_LIGHTS|Notification.FLAG_NO_CLEAR;
                  mNotificationManager.notify(HELLO_ID, notification);
  </code></pre>
  
  <p>In this I also use the custom layout,</p>
  
  <p>Now I have two questions,</p>
  
  <p>1) The sound plays and it stops when user clicks on notification tab,but I want to continue the sound until user press any button on custom layout.</p>
  
  <p>2) I add a button in custom layout now i can implement onClickListener() on it.</p>