I want to finish with the app by clicking the notification, my current code launches an activiti but I want to directly finish the app
private void notificacion (String radio){
NotificationCompat.Builder mBuilder;
NotificationManager mNotifyMgr =(NotificationManager) getApplicationContext().getSystemService(NOTIFICATION_SERVICE);
//int icono = R.mipmap.ic_launcher;
Intent i=new Intent(MainActivity.this, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(MainActivity.this, 0, i, 0);
mBuilder =new NotificationCompat.Builder(getApplicationContext())
.setContentIntent(pendingIntent)
.setSmallIcon(R.mipmap.ic_launcher)
.setContentTitle("Anime Fm 2")
.setContentText("Reproduciendo "+radio+" en segundo plano")
//.setVibrate(new long[] {100, 250, 100, 500})
.setAutoCancel(true);
if (mediaPlayer!=null && mediaPlayer.isPlaying()){
mNotifyMgr.notify(1, mBuilder.build());
} else {
mNotifyMgr.cancel(1);
}
}