I have a Service module in my app. It downloads a text file from my website every 15 minutes via FTP. However, when I press the power button on my phone and turn it off, the Service module stops working (I don't get my download status emails any more so I know it has stopped working).
The app is still in memory (I think) but should the Service module stop working when phone is turned off? Or is something else happening that I'm not aware of?
BTW...on my Galaxy S running CM7, the Wi Fi is set to sleep when the screen shuts down. However, my service is still scheduled properly. I will have to check whether I am using Mobile Data. But when the screen is shut, everything is working in the background, emails etc etc.
Then I dont understand what your problem was!!!
Either your FTP server/SMTP server is on a local network, otherwise you should have fallen back on Mobile data.
EDIT:
There is also the possibility that you are connecting in the wrong way. If you are trying to keep the connection alive, then it breaks on the network switch.
Dude you sound confused too much.
You should try to take a single line of debug and not spread out too much.
Also, a wise man once said only use a single device for debug.