I set the notification after file donwnload,working fine but is not not clear when click on the notification.i have code below CharSequence text = message;

Notification notification = new Notification(R.drawable.icon, "vvs",
            System.currentTimeMillis());
    notification.defaults |= Notification.FLAG_AUTO_CANCEL;
    Intent intent = new Intent(this, HomeScreenActivity.class);
    intent.setFlags (Intent.FLAG_ACTIVITY_CLEAR_TOP);
    PendingIntent contentIntent = PendingIntent.getActivity(this.getBaseContext(), 0,
          intent, PendingIntent.FLAG_CANCEL_CURRENT);
    notification.setLatestEventInfo(this, title,
                  text, contentIntent);
    notificationManager.notify(R.string.app_name, notification);

can please tell me where i made the mistake?

Thank you.

link|flag

78% accept rate

Know someone who can answer? Share a link to this question via email, twitter, or facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.