Home > Software design >  How do I create a new record in Android Room database?
How do I create a new record in Android Room database?

Time:01-16

This seems like a lazy question, but the offical docs literally don't explain how to do this.

enter image description here

CodePudding user response:

There should be always a @PrimaryKey(autoGenerate = false) while inserting data in the DB

  • Related