Machen Sie den Handler kontinuierlich laufen
Handler handler = new Handler(Looper.getMainLooper());
handler.postDelayed(new Runnable() {
@Override
public void run() {
handler.postDelayed(this, 500);
}
}, 500);
Bad Beaver