Previously, we got to know how to setup and implement Room library into our project. In this article, we’ll get to know how to insert, save and delete objects or populate or SQLite tables. In MainActivity, I’ll first define the app database. private AppDatabase appDatabase;@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); appDatabase = AppDatabase.getDatabase(this);} Insert First […]
