title: Android Local Notification
body: <p>I need to show a local notification in android in title bar when certain event occurs. I want the notification also play certain sound as well.</p>
  
  <p>On tap  of notification I want app should not be launched and notification should be cleared.</p>
  
  <p>I am using this code but on tap of notification it opens my app again.</p>
  
  <pre><code>        CharSequence title = "App title";
          CharSequence message = "This to alert you that estimated time is getting complete.";
  
          NotificationManager notificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
          Notification notification = new Notification(R.drawable.ic_launcher, "Title", System.currentTimeMillis());
  
          Intent notificationIntent = new Intent(this, JobView.class);
          PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
  
          notification.setLatestEventInfo(JobView.this, title, message, null);
          notificationManager.notify(1010, notification);
  </code></pre>