Create your account

Already have an account? Login here

Note: By joining, you will receive periodic emails from Coursetro. You can unsubscribe from these emails.

Create account

97. Continuous Increment and Decrement With Handler

Design + Code an Android App from Scratch

Woah, wait a second..

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.

Course Cirriculum