Service stops when phone is turned off

rfresh

Well-Known Member
Licensed User
Longtime User
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?

Thanks...
 

thedesolatesoul

Expert
Licensed User
Longtime User
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.

Anyway, maybe warwound will get the first beer :p
 
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
Actually my Droid2 and Droid3 work that way too...when my wifi sleeps I still get emails so it must fall back on the cellular network.
 
Upvote 0

thedesolatesoul

Expert
Licensed User
Longtime User
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.
 
Last edited:
Upvote 0

rfresh

Well-Known Member
Licensed User
Longtime User
Sorry for the confusion. My Droid2 is not on a cellular network...wifi only...it didn't get emails while the wifi was asleep (as expected).

My Droid3 is on the cellular network and it's the one that gets emails while wifi is asleep because it can fall back on the network.
 
Upvote 0

thedesolatesoul

Expert
Licensed User
Longtime User
Sorry for the confusion. My Droid2 is not on a cellular network...wifi only...it didn't get emails while the wifi was asleep (as expected).

My Droid3 is on the cellular network and it's the one that gets emails while wifi is asleep because it can fall back on the network.
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.
 
Upvote 0
Top