Three things you should consider: 1) Separate your application into foreground Activity (more likely multiple Activities) and a Service 2) do the download with a worker thread (e.g. AsyncTask) 3) Read up on the PowerManager (in package android.os), in particular, the WakeLock object; PARTIAL_WAKE_LOCK is probably the flag you want.
On Jul 30, 1:11 am, Yannick Plenevaux <yplenevaux.geoli...@gmail.com> wrote: > Hello everybody, > > I am currently searching to set out an issue I encounter. > I am developing an Application on Android which have to download a lot > of data and then be unused for a while. > > During the download, the device is locked and switch to a kind of idle > mode that close the wifi connection. > I don't find out anything about it so I need your precious help. > > I would want to programmatically disable this idle mode. Is it > possible, what sould I do for it? > > Respectfully regards, > > Yannick Plenevaux > Geolives SA -- 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