← Lecture 2 DemosDEMO 04 · EVENT FLOW
FROM INPUT TO OUTPUT

Follow the Click

Run the app one step at a time and identify which object is responsible at each point.

BEER ADVISERINTERACTIVE APP
Beer Adviser
No beers selected
EXECUTION TRACEREADY
1 · Layout calls the Activityandroid:onClick invokes onClickFindBeer(view)
2 · Activity reads the SpinnerfindViewById() and getSelectedItem()
3 · BeerExpert applies the rulesgetBrands(beerType) returns a List<String>
4 · Activity updates the TextViewbrands.setText(formattedBrands)
Choose a value and click Find Beer.