Android sqlite database -


i have entered exit problem..

my own database file in encrypted zip file , on assets folder. @ first copy zip file in package directory. extract encrpyted zip file zip4j library. extract database file package directory , open database file with;

sqlitedatabase database = sqlitedatabase.opendatabase(                     dbfile.getpath(),                     null,                     sqlitedatabase.no_localized_collators | sqlitedatabase.open_readonly); 

then delete database file dbfile.delete(); (because database file not encrypted , large ~6mb lot of space)

but dont delete zip file because encrypted, little size ~2mb and @ each application launch not copy zip file again.

although database query's work (but delete database file maybe database open in memory?)

but times show problem on logcat;

sqliteconnectionpool: sqliteconnection object database '/data/user/0/mypackage/files/mydb' leaked!  please fix application end transactions in progress , close database when no longer needed. 

my project use lot of database query. cursor object in try catch finally block. in finally block cursor.close().

what can do?


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -