0
example.com/time.phpのようなものがあり、その出力は20000です。これをリンクしてリフレッシュの時間を制御する方法はありますか?ウェブページの出力に応じてアンドロイドのリフレッシュ時間を制御する
Thread t = new Thread() {
@Override
public void run() {
try {
while (!isInterrupted()) {
Thread.sleep(10000); // here is the number which should be linked to the webpage output
runOnUiThread(new Runnable() {
@Override
public void run() {
// update View here!
}
});
}
} catch (InterruptedException e) {
}
}
};
t.start();