0

I want to close my application when the user touch the notification, this is my code for notification code in main activity

Screenshot

    NotificationCompat.Builder builder=new           NotificationCompat.Builder(this);
    builder.setSmallIcon(R.drawable.earth);
    builder.setContentTitle("RadioPlanet");
    builder.setContentText("Touch here to stop");
    int mll=001;
    NotificationManager mNotification=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
    mNotification.notify(mll,builder.build());
Jaison_Joseph
  • 333
  • 7
  • 26

0 Answers0