Thanks for your reply. Can you tell me more details. Actually WiFi turn off after a couple of minutes. When alarm comes, The code is required to reestablished network connection and then upload data.
On Sep 27, 11:37 pm, Kristopher Micinski <krismicin...@gmail.com> wrote: > The general way to fix this problem is to assume that they have > network connectivity sitting in the background. Tons of apps do this, > by use of a data connection that many devices have. > > So this is a pretty typical situation, almost any major app out there > deals with it in some form or another (Facebook, Twitter, Gmail, and > so on...) > > There's no API, but you don't really need one. > > Kris > > > > > > > > On Tue, Sep 27, 2011 at 9:57 PM, bobo123 <huangbo...@gmail.com> wrote: > > Hi, > > > I am writing an alarm type android application which upload some > > data to server at a schedule time. > > > Usually the device screen is off and WIFI or other type network is > > in disconnected. > > > I wish when the schedule time arrives, I can enable network > > connectivity so that I can upload data to server. > > > Is There any API I can use? > > > Currently when the schedule time arrives, it will trigger upload > > routine, however, the network state is disconnected, so that the > > upload routine upload data to server. > > > Best Regards, > > Bo > > > -- > > 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 -- 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