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

Persist data with Room: Mistake in description of method InventoryDatabase#getDatabase #172

Open
iurii-kyrylenko opened this issue Jan 13, 2025 · 0 comments

Comments

@iurii-kyrylenko
Copy link

URL of codelab:
Persist data with Room

Specify the language of the codelab if it is not English:

In which task and step of the codelab can this issue be found?
7. Create a Database instance

Describe the problem

You need to create an abstract RoomDatabase class and annotate it with @Database. This class has one method that returns the existing instance of the RoomDatabase if the database doesn't exist.

Perhaps it should be changed to:

This class has one method that returns a new instance of the RoomDatabase if the database doesn't exist or the existing instance otherwise.

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions
Android Studio version:
API version of the emulator:

Additional information
Include screenshots if they would be useful in clarifying the problem.

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

1 participant