Demo of using Android Studio (2021.3) to create a simple application with a button which generates a log message and a toast.
1. Launch Android Studio; create simple hello-world app.
2. See XML and .java code for activities
3. Add a button, change name, see XML
4. Java code to access button: View.OnClickListener
5. Generate a log message when button is clicked.
6. Generate a toast when button is clicked.
Ещё видео!