On Sun, May 15, 2011 at 7:15 PM, Mike <[email protected]> wrote: > I am trying to write an app that will notify the user when a new piece > of content is added to my database. I know I can make a service that > would just poll the database every two hours or so but I feel like > there is a much better way to do this. Is this really the only and or > best way to do this?
When you add a new piece of content to the database, raise a Notification. Or, if you think your client activity will be running at the time, use an ordered broadcast to either notify your activity or raise a Notification: 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 Android Training...At Your Office: http://commonsware.com/training -- 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

