Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Bus Schedule App #12

Open
Tomash972 opened this issue Feb 21, 2024 · 1 comment
Open

Build Bus Schedule App #12

Tomash972 opened this issue Feb 21, 2024 · 1 comment

Comments

@Tomash972
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants