title: Self-disappearing String as Notification on Status-bar in Android
body: <p>I want to create a notification on Status bar in Android which shows up a String and disappear without user intervention after a specified period of time.</p>
  
  <p>I don't want the notification to launch any other activity or service.</p>
  
  <p>I am trying to use NotificationCompat without <code>setContentIntent()</code> and my application is crashing with <code>java.lang.IllegalArgumentException: contentIntent required</code></p>
  
  <p><strong>My Question</strong>
  How to create a self-disappearing String Notification in Android which does not launch another activity or service? </p>