Thanks Anthoni and Frank @Anthoni and @Frank
I checked this code , actually i had already implemented in this way instead of on BOOT i used Alarm Manager that repeatedly wake up the phone after 5 minutes and then i start my service. But the problem is background service works fine for 15 minutes or more and after sometimes it throws Socket.net Exception Network Unreachable??. This is when i am trying to connect with my company server for updates . On Feb 7, 1:36 am, Anthoni <anthoni.gard...@gmail.com> wrote: > Hihimanshu, > > The code, along with all other test / demo applications done by the > android team, is located on Google under subversion. > > This link ishttp://code.google.com/p/apps-for-android/ > > Regards > Anthoni > > On Feb 7, 5:37 am,himanshujain <himanshu....@gmail.com> wrote: > > > @frank > > > Can you please tell me where i can find that sample code. > > > thanks > > > On Feb 6, 9:28 pm,himanshujain <himanshu....@gmail.com> wrote: > > > > @frank > > > > Thank you very much let me look at those sample then i will let you > > > know. > > > > once again thanx > > > > On Feb 6, 7:14 pm, Frank Weiss <fewe...@gmail.com> wrote: > > > > > Re your question about implementing a service that polls for updates, > > > > please > > > > look at some of the sample code. For example, Romain Guy's Photostream > > > > demo > > > > application has a background service that polls the Flikr API > > > > webservice for > > > > updates and displays a notification in the notification bar. AFAIK > > > > whether > > > > the access is by phone network or WiFi is functionally irrelevant. -- 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