There is an application, it has a list of something for 200 items.

How can I deliver an application with a database already filled out? those. so that after installing the application this list is filled from the database.

    1 answer 1

    Schematically:

    1. In assets put your database
    2. Create a database in the application (standard SQLiteOpenHelper )
    3. Copy when you first start the database from assets in the application database.
    4. You work from the filled DB.
    5. After the user clears the application data, repeat step 3
    • Thanks for the response. I wonder if it is right to use such a database at all. Purpose: there is a game, there is a list of improvements, each improvement or several becomes available when a certain level is reached. I think to make a table in which there will be fields a level and further already a description of the achievement, what it gives and so on. - researcher