public void displayRingingNotification(){
  NotificationCompat.Builder builder=new NotificationCompat.Builder(this);
  builder.setWhen(System.currentTimeMillis());
  builder.setContentTitle(Tools.APP_NAME);
  builder.setContentText(getString(R.string.main_service_notification_stop_ringing));
  builder.setSmallIcon(R.drawable.ring_0);
  builder.setContentIntent(sPendingIntentStopRinging);
  builder.setOngoing(true);
  sNotificationManager.notify(NOTIFICATION_STOP_RINGING,builder.getNotification());
}

public void displayRingingNotification ( ) { NotificationCompat . Builder builder = new NotificationCompat . Builder ( this ) ; builder . setWhen ( System . currentTimeMillis ( ) ) ; builder . setContentTitle ( Tools . APP_NAME ) ; builder . setContentText ( getString ( R . string . main_service_notification_stop_ringing ) ) ; builder . setSmallIcon ( R . drawable . ring_0 ) ; builder . setContentIntent ( sPendingIntentStopRinging ) ; builder . setOngoing ( true ) ; sNotificationManager . notify ( NOTIFICATION_STOP_RINGING , builder . getNotification ( ) ) ; }
displays an notification in the status bar to send the command ring : stop
