Hi,
Does Android have a special way to loop an application every 1 minute?
Or do you know of any applications (with source) that I could look at?
Apparently if I use Thread.sleep(1000*60); the application may time
out on me and need me to click a wait button - I just want it to keep
looping forever. Apparently the when you sleep() a thread it stops
running for the time given.
I'm using it to ensure that my internet connection isn't ever open for
more than a minute something like this:
while (true) {
if (getConnectionOpenTime()>1minute) {
closeConneection();
}
Thread.sleep()1000*60;
}
The connection gets re-opened elsewhere so this needs to keep looping.
Cheers,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---