Hey i'm hoping somebody could help me out. I see a lot of articles and StackOverflow questions about setting alarms but I am a little confused as to how to set up an android alarm for my specific situation. Basically, I have an AsyncTask that downloads data from a server and then updates a ListView. I want that to be run every day at 12:00 AM. If the phone is turned off, it should run when the phone wakes up. If the phone is on but there is no network, it should run the next time an active network is available or at least try running every 30 min until it is successful.
Hopefully someone in this awesome community could show me how its done :-)