title: how to use NOTIFICATION_SERVICE in android
body: <p>I want to show a notification after receiving a WAP push message in my phone.I know that NOTIFICATION_SERVICE is i need to be used. But i don't know how to use this. Please help me to overcome this problem. I am able to receive the message in my phone and it is printing in the log correctly. Written some code for showing the notification but it is not working. Attaching the code along with please have a look on it and expecting a proper guiding on this.</p>
  
  <pre><code>private void showNotification(String text,Context con) {
  
      Notification n = new Notification();
  
      n.flags |= Notification.FLAG_SHOW_LIGHTS;
      n.flags |= Notification.FLAG_AUTO_CANCEL;
  
      n.defaults = Notification.DEFAULT_ALL;
  
      n.icon = R.drawable.ic_sms_wap;
      //n.when = System.currentTimeMillis();
  
      // Simply open the parent activity
  
      // Change the name of the notification here
      //n.setLatestEventInfo(this, NOTIF_TITLE, text, pi);
  
      mNotifMan.notify(NOTIF_CONNECTED, n);
  }
  </code></pre>