mardi 10 mars 2015

Sqlite in Android 4.4 is deleted when closing app

I've got a problem with sqlite in my application. The problem is: My sqlite with all data is vanished after closing app, reinstalling app in eclipse studio. I close app using back-arrow on my device or swipe out icon of this app from manager bar shown on the photo. When I add new position to my listView, it works fine but When I swipe out application from manager bar it destroyes my sqlite database and I lose everything. I store my list view in global object (extends Application). Problem is with this vanishing database. What is wrong here? I'm using Android 4.4 on tablet Samsung Galaxy Tab 4.


PHOTO:


My app closing with "swipe-out" gesture


Aucun commentaire:

Enregistrer un commentaire