In android development, and when is it good to use sql lite vs Web server db? If a person delete the app or upgrade my app then will the db get deleted if i use sql lite?
Thank you very much
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.
Use
SQLite. Android comes with good support for it.Usually the location for the database in Android is:
The sqlite database is just a file on the SDCard. It isn’t tied to the app, so removing and or updating an app wont affect the database. (unless you wrote update code to update your db 🙂 )
Sqlite is easy to use, compact, and obviously can be stored on your SDCard at ease. The ability to connect to it etc is all done in android.
You only need a web server database if you intend to share information from your app between devices/people. If the data is only necessary for your local device then definately use sqlite.