Making a Button Do Something4:35 with Ben Deitch
In this video we'll see how to make a button trigger some code by adding an OnClickListener. Listeners like this sit patiently in the background and "listen" for something to happen. And when that something happens, they run their code.
You need to sign up for Treehouse in order to download course files.Sign up