[android-developers] Re: Disabling Idle mode

2010-08-01 Thread Indicator Veritatis
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_

[android-developers] Re: Disabling Idle mode

2010-08-01 Thread RichardC
Design your download process to explect the connection to be broken (it's a moble or WiFi connection - they will break), and recover and continue the download when the connection is resumed. If your phone is turning off during the download search for "wakelock" in the documentation. On Jul 30, 9: