title: Notification not working with Android 4.0
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/13738750/onmessage-i-want-to-open-google-play-android">OnMessage i want to open Google Play android</a>  </p>
  </blockquote>
  
  
  
  <p>When I use the below code in Android 4.0 (ICS) it doesn't work:</p>
  
  <pre><code>     NotificationManager notificationManager = (NotificationManager) getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);
      Notification notification = new Notification(R.drawable.ic_launcher, "Testomg", System.currentTimeMillis() + 5000);
  
      Intent notificationIntent = new Intent(Intent.ACTION_VIEW);
      notificationIntent.setData(Uri.parse("market://details?id=com.karya.kot"));
      notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
      PendingIntent intent = PendingIntent.getActivity(getApplicationContext(), 0, notificationIntent, 0);
      notification.setLatestEventInfo(getApplicationContext(), "Google Play", "Download app", intent);
  
      notification.flags |= Notification.FLAG_AUTO_CANCEL;
      notificationManager.notify(0, notification);
  </code></pre>
  
  <p>But it's works for lower versions of Android.</p>
  
  <p>For Android ICS, I want to use Notification.Builder, but then what should I use for lower versions?</p>