Hi I want a notification so when I click on it it goes to my website, the notification pops up when my app is launched but when I click on it nothing happens. The notification works but now I need help to have it go to my website when I click on it.
Intent intent = new Intent(this, Notification.class);
PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0);
// build notification
// the addAction re-use the same intent to keep the example short
Notification n = new Notification.Builder(this)
.setContentTitle("Download M9APPS APP MARKET")
.setContentText("http://www.m9apps.com")
.setSmallIcon(R.drawable.icon)
.setContentIntent(pIntent)
.setAutoCancel(true)
.addAction(R.drawable.icon, "And more", pIntent).build();
NotificationManager notificationManager =
(NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.notify(0, n);