Design + Code an Android App from Scratch
Scrounge up some loose change to become a pro member, or login to your account to view this lesson.
Alright, join now. Or login to your account if you're already a pro member.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.