> Supply both contentIntent and deleteIntent, and track it yourself, as 
> I originally described. 
>
> You can also try FLAG_NO_CREATE with the getActivity() (or whatever) 
> call to PendingIntent. In theory, if it returns null, there is no 
> existing PendingIntent to be used, and therefore the Notification that 
> had that PendingIntent in contentIntent is gone. Personally, I'm not 
> completely comfortable with this model, as I am unclear on the 
> behavior if your process goes away, but you are welcome to experiment 
> with it. 
>

As I wrote at my first post:
"I can do it via PendingIntents (thought it require to ask application 
developers to make a couple of things in code)"
I am doing exactly what you suggest here. The problem is that it's 
not straight forward approach and it require from developers to right 
special code (like giving action type to intent). Another problem that it 
will not give me opportunity to verify notification ticker (I am doing it 
right now by asking developers to add it to intent category)

>
> > It's not so weird scenario to be able to check that some notification 
> > exists. 
>
> IMHO, it is. 
>
> If you want the Notification to be gone, cancel() it. 
>
> If you want the Notification to be there, raise it again (with the 
> same ID), and it will replace the one that is there if it happens to 
> be there, or will create it anew if not. 
>
>
As I mentioned I am writing testing platform, so it's not about developer 
using this method.
 

> Most situations will fit one of the above two cases. Now, I won't deny 
> that it would be *handy* to have an isNotificationActive() method or 
> some such, but it is not there. Of course, you are welcome to add such 
> a method in a contribution to the AOSP, if you feel sufficiently 
> strongly about it. 
>
>
Good idea, probably I will do it.

Thanks for answering.
 

> -- 
> Mark Murphy (a Commons Guy) 
> http://commonsware.com | http://github.com/commonsguy 
> http://commonsware.com/blog | http://twitter.com/commonsguy 
>
> Android Training in DC: http://marakana.com/training/android/ 
>

-- 
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