Android Tutorial #30: Settings Page (4/7) Toggle app sound FX with radio buttons and getters setters

Опубликовано: 10 Апрель 2026
на канале: clientuser.net
1,784
13

Source Code:   / clientuser_net  

We finally make the step to connect our radio buttons to control the sound effects in our application. We create getters and setters in the Application class, which we use to set a boolean to keep track if the user wants to hear sound effects or not. We then call the getters and setters in the application class from the xml defined radio button handlers, and also the programatic radio handler code.