Homework
Homework — run Pica and the backend
Homework — make sure both the app and the backend work in your own hands.
- Run Pica on an emulator or phone. You should see "Hello Pica!". If the sync fails, check the plugins block (remember the AGP 9 gotcha).
- Change the screen. In
MainActivity.kt, replaceGreeting("Pica")with your own greeting, e.g.Greeting("Pica @ Table 7"). Re-run — the text changed. - Run the provided backend locally (the Go server in
_reference/pica-backend; see itsREADME). Openhttp://localhost:8080/menuin a browser — it should return a JSON list of pizzas. That's the data the app will load in lesson 5.
Required tests:
- Run test: the app opens and shows your text; no red errors in the console (Logcat).
- Backend test:
GET /menureturns JSON (not a 404, not "connection refused").
To submit: a screenshot with your changed text + the GET /menu response.
Tip. You have a working project, a theme and a first screen — the foundation is laid. But the screen is still empty while the backend already has pizzas. Next lesson is Compose UI: we build the real menu list — scrollable pizza cards with Material 3. The data is static for now (the real
GET /menuconnects in lesson 5), but the screen will finally look like Pica.