I want to store large chunks of data as JSON in the assets folder and then import it into the Database on Boot/First Run.
Is this a best practice ? Which other way can i achieve this ?
Could you share some articles regarding database on Android
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You might just package a database in assets and save yourself the transaction time of doing the imports. See
SQLiteAssetHelperfor an implementation of this.