Design + Code an Android App from Scratch
This video shows you how to increment and decrement values continuously using the android Handler class. In the first step create an instance variable of the Handler class with its Handler.Callback subclass. To fire the message continuously, use a boolean condition so that message is fired as long as the condition is true. Use the sendEmptyMessageDelayed method to fire messages continuously.