I have one scenario for which I need help. I included database with app in Asset folder and then used SQLiteAssetHelper, which works fine. Now the thing I want is that, I dont want to include the database with app, I want to put my database online and when the user install the app it should get the database from online source and the user should also get updates to the database from time to time. How can I achieve this? Thanks in advance
Asked
Active
Viewed 44 times
0
-
Database is in which format?? MySQL, MS Access, MS Excel, SQLite etc. Please provide the extension of db file. – Daksh Agrawal Aug 20 '18 at 10:17
-
1You should use rest calls – G. Ciardini Aug 20 '18 at 10:18
-
I think this is not possible, however, you can connect your Android application through MySQL, SQL Server, Oracle using the web service and *GET* & *POST* calls. The best HTTP library for implment this is [Volley](https://github.com/google/volley) – R. García Aug 20 '18 at 10:20
-
have you tried this way -> https://stackoverflow.com/questions/9109438/how-to-use-an-existing-database-with-an-android-application – Yogesh Rathi Aug 20 '18 at 10:23
-
Yes i have tried this Yogesh Rathi, But I dont want to put my database in the asset folder, i want to put it online. Dakhs its sqlite, – M Asghar Aug 20 '18 at 10:36