Save data in a local database using Room | Android Developers
Learn to persist data using the Room Library