On Mon, Sep 13, 2010 at 10:51 AM, spartygw <[email protected]> wrote:
> I have a server socket bound to a port and I want to send
> notifications using NotificationManager when a client connects.  This
> all works well.
>
> What I want to avoid is sending notifications if a specific activity
> is currently being used by the user.  E.g., I'm trying to avoid
> something like GMail notification if I'm already reading email.

Use an ordered broadcast:

http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

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