I'm actually talking about adding to a remote database in the cloud. So something would have to tell the background service that something has been added before this method could be used.
On May 15, 7:20 pm, Mark Murphy <mmur...@commonsware.com> wrote: > On Sun, May 15, 2011 at 7:15 PM, Mike <mechena...@gmail.com> 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-... > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en