make handler running continuously code example
Example: make handler running continuously
Handler handler = new Handler(Looper.getMainLooper());
handler.postDelayed(new Runnable() {
@Override
public void run() {
handler.postDelayed(this, 500);
}
}, 500);