My service calls startForeground with Notification.FLAG_ONGOING_EVENT to 
create an ongoing notification. At that point, I see the following in the 
event log (adb logcat -b events). flags=0x42 is 
FLAG_FOREGROUND_SERVICE|FLAG_ONGOING_EVENT.

04-04 17:01:23.928   588   623 I notification_enqueue: 
[com.shri.testapp,1,NULL,Notification(contentView=com.shri.testapp/0x10900d3 
vibrate=null,sound=null,defaults=0x0,flags=0x42)]


On almost all devices, the notification stays around until the service 
stops itself. However, on a HTC One VX and Samsung Galaxy Tab 10.1 (both 
Android 4.0.4), the ongoing notification is being removed after a while 
even though the service is still running. I see a notification_cancel_all 
in the event log when the notification goes away.
 

04-04 17:01:31.016   588   621 I notification_cancel_all: [com.shri.testapp
,0,0]


I am not even touching the device when the notification disappears. I am 
positive the service is still running. What can cause 
notification_cancel_all?

Thanks,
Shri

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to