Homework

Homework — run Pica and the backend

Homework — make sure both the app and the backend work in your own hands.

  1. 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).
  2. Change the screen. In MainActivity.kt, replace Greeting("Pica") with your own greeting, e.g. Greeting("Pica @ Table 7"). Re-run — the text changed.
  3. Run the provided backend locally (the Go server in _reference/pica-backend; see its README). Open http://localhost:8080/menu in 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 /menu returns 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 /menu connects in lesson 5), but the screen will finally look like Pica.