title: using NotificationManager into an android service
body: <p>I have a service running in the background and I want to notify user if there is a new data, I've used a notificationmanager, and the notification appears, but when clicking on it it doesn't do anything (it is supposed to show an activity
  I'm new in android and here is my code</p>
  <pre><code>NotificationManager notificationmanager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
  Notification notification = newNotification(R.drawable.shoppingcarticon, &quot;Nouvelle notification de ShopAlert&quot;, System.currentTimeMillis());
  notification.defaults |= Notification.DEFAULT_VIBRATE;
  notification.flags |= Notification.FLAG_AUTO_CANCEL;
  
  Intent intent = new Intent(this,GooglemapActivity.class);
  PendingIntent activity = PendingIntent.getService(this, 0, intent, 0);
  
  notification.setLatestEventInfo(this, &quot;This is the title&quot;, &quot;This is the text&quot;, activity);
  notification.number += 1;
  notificationmanager.notify(0, notification);
  </code></pre>
  <p>your help will be appreciated.</p>