• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Java code to poll server every minute

phpCoder

Lurker
I am in the process of building my first Android application. The application will poll a server every minute and request a specific web resource and process the information. All the above is working, except I can not figure out how to set a wait() 60 seconds and call the class again. As you can probably guess I am a PHP developer, it has been years since I have needed to use Java.

Any help would be great


program overview:

public class pollserver extends Activity {

public void onCreate() {
/*
- Using httpGet() to get server status
- Processing data received from server
*/
// I need to call the pollserver every 60 seconds
// just can't figure out how. I really thought this
// would have been the easiest aspect of this project

}

private void pollserver () {

}

Any suggestions for adding a wait() and call to pollserver() would be
much appreciated.


}
 
Welcome to Android Forum. This is a friendly place for discussion, learning and help.

Nice of you to stop by and join us. You might wanna check out our developers forum. Here's a link to the
Application Development - Android Forums where other developers love to hang-out. Also, you will want to check into the area where your personal Android device is support as well. Thanks for joining!

I hope you find this place insightful and informative. :)
 
Back
Top Bottom