Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load data from a database in Assets folder #71

Open
JAntoniodomga opened this issue Mar 7, 2020 · 3 comments
Open

How to load data from a database in Assets folder #71

JAntoniodomga opened this issue Mar 7, 2020 · 3 comments

Comments

@JAntoniodomga
Copy link

ReActiveAndroid Version: 1.4.3

Bug or Feature Request: How to load data preloaded in a db file in Assets folder

Description:
I create a db file with data and when y try to get data i can´t load.
Thanks

@bhapps
Copy link

bhapps commented Mar 7, 2020

try this;

#44 (comment)

@persiscms
Copy link

persiscms commented Jun 14, 2021

create a sqlite database and name it exactly as you defined in AppClass with .db extension. when reactiveandroid initialized it will copy database from asset folder into data directory which is working with. but be aware for any further modification of database file. in that case you should create migration

@nguyenconghoan
Copy link

nguyenconghoan commented May 31, 2022

ReActiveAndroid doesn't support work with a database from assets folder. To do it, you must copy your db file to databases folder manually before ReActiveAndroid have been initialized.

Reference link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants