You only need one instance of the Room database for the whole app, so make the RoomDatabase a singleton. Use Room's database builder to create the database only ...
確定! 回上一頁