Android SQLite permanent data

1.8k views Asked by At

I'm developing simple application for collecting expenses. For now I keep data using SQLiteDatabase. I have 2 questions:

1) When I clear application data in Settings->Application then SQLite db is lost. Is there any way to keep data permanently on device even if application will be deleted ?

2) How about SQLite db capacity ? In case of my app, it should keep data from several months or years. Does sqlite db on android have any size restrictions ?

1

There are 1 answers

1
Guillaume On

1) No, and you don't want that. When the user deletes the application, he doesn't want any data left on his device. That would be bad practice, and people would give you bad reviews for that.

2) I don't think there's any limit, it will depend on the physical storage available. Check that for more metrics around SQLite.

Also, this has some useful information.