کد پیاچپی:
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_launcher) // notification icon
.setContentTitle("Notification!") // title for notification
.setContentText("kelidestan.com") // message for notification
.setAutoCancel(true); // clear notification after click
Intent browserIntent1 = new Intent(
Intent.ACTION_VIEW,
Uri.parse("http://cafebazaar.ir/app/com.acne.treat/?l=fa"));
startActivity(browserIntent1);
PendingIntent pi = PendingIntent.getActivity(this,0,intent,Intent.FLAG_ACTIVITY_NEW_TASK);
mBuilder.setContentIntent(pi);