How to create sqlite database at the time of android app installation?

前端 未结 2 2010
一向
一向 2021-02-09 18:34

I am having Registration screen as my first screen but before that i want to create database. is it possible to create database at time of installation in android rather than cr

2条回答
  •  不要未来只要你来
    2021-02-09 19:27

    If you want to use a previously created database in your application,at the time of installation the you need to create a database put it in assets folder and then copy it in application. refer this links: SQLite Database "context" passed to adapter

    Database not copying from assets

    adding your own SQLite database to an android application

提交回复
热议问题