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.
}
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.
}
