google-developer-training / basic-android-kotlin-compose-training-bus-schedule-app

Apache License 2.0
26 stars 25 forks source link

Build Bus Schedule App #12

Open Tomash972 opened 8 months ago

Tomash972 commented 8 months ago

URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-practice-bus-schedule-app?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-practice-bus-schedule-app#5

In which task and step of the codelab can this issue be found? 6.‏ Create a database instance

Describe the problem expected: "The database initializes itself with data from the assets/database/bus_schedule.db file in the starter code" actual: the function of Builder.createFromAsset hasn't been introduced anywhere; no reason for a noobie to figure it out wihtout cheating...

Steps to reproduce?

  1. Create the app without using createFromAsset
  2. Run the app
  3. no schedule is displayed
rafaover commented 7 months ago

It's available in the documentation for reading: https://developer.android.com/training/data-storage/room/prepopulate