title: Notification to open Android Market
body: <p>I want to create a <a href="http://developer.android.com/reference/android/app/Notification.html" rel="noreferrer">Notification</a> that, when clicked, opens my application on Android market.</p>
  
  <p>I have tried several things, like below:</p>
  
  <pre><code>NotificationCompat.Builder builder = new NotificationCompat.Builder(application);
  builder.setAutoCancel(true);
  // (set titles, icon, ...)
  
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.setData(Uri.parse("market://details?id=com.android.example"));
  
  builder.setContentIntent(PendingIntent.getActivity(application, 0, intent, 0));
  Notification notification = builder.build();
  
  NotificationManager manager = (NotificationManager) application.getSystemService(Context.NOTIFICATION_SERVICE);
  manager.notify(0, notification);
  </code></pre>
  
  <p>However, when clicked, nothing happens. Anyone who knows how to get this to work?</p>