How to Pre-populate Android Room Database on First Application Launch

Programming tips

Sometimes we need an application to be prefilled with some data on its first launch. Usually, we would make a REST query and receive the data from backend, but our application is standalone so that the only data source we have is our apk file. In this article I will describe a recipe how to prepopulate Room database with a small data set and how to do it with a few simple steps.

from Anadea Blog https://ift.tt/2C6A8wP

Leave a comment

Design a site like this with WordPress.com
Get started
search previous next tag category expand menu location phone mail time cart zoom edit close