Android Apps - 06 - Buttons & Listeners

Опубликовано: 24 Июль 2026
на канале: George Lecakes
295
2

We continue our magic 8 ball application by discussing buttons and listeners. I show you how we can implement the interface with our activity class or create an anonymous class for handling button presses. Finally, we create a switch statement that references strings stored as resources that will change the 8-balls outcomes. I run into an error or two at the end with the R file and show you how to debug it. Finally, I run into a JDK version issue, which I will show you how to fix in the next video.

Thanks for watching!
Your support helps me make new content!
If you'd like to become a Patron:   / glecakes  
Website: http://www.georgelecakes.com
Twitter:   / glecakes  
Facebook:   / george.lecakes