i am using following code to get notifications from a service

nm = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
        Intent intent = new Intent(this,test.class);
        PendingIntent pi = PendingIntent.getActivity(this, 0,
intent,Notification.FLAG_AUTO_CANCEL);
        String body = "Hi this is test"+count;
        String title = "Ritu"+count;
        Notification n = new
Notification(R.drawable.icon,body,System.currentTimeMillis());
        n.setLatestEventInfo(this, title, body, pi);
        n.defaults = Notification.DEFAULT_LIGHTS;
        n.number=++count;
        nm.notify(uniqueid, n);


every time i am getting a new notification , the number on it gets
incremented but when i open notification window i can see only one the
latest notification and after clicking on it number of notification
does not get decremented. where i am wrong please help. Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to