0

I have wondered a lot on Internet. At last, here I am gonna ask for help from you guys :

I am working on an Android Application in which I have to inform user through "Status Bar Notification" whenever new data is available on my web server.

I have thought of running a service on the Android Device and continuously ping on web server in order to find whether new data is available.

Please suggest, is this the way to do this or there is another better way to do this?

Thanks in advance.

Sonu
  • 65
  • 3
  • 10

1 Answers1

0

what you are looking for is sometimes called push notification. which on android devices is usually implemented using the new google cloud messaging

you use this to notify your android app that your server has new data, then get it from your server.

you may also want to look at this question that is also about push notifications in android.

Community
  • 1
  • 1
Oren
  • 4,152
  • 3
  • 30
  • 37