Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android eclipse Dump SQLite table row into text file

Is there a way to grab database table information in your android app and dump it into a text file? I know how to create files, but I can't seem to find the correct code to select DB information and dump it into a text file (or even a csv file).

Or am I just going to have to do a manual select statements for every row, grab the data from a cursor, and then write them to a file?

like image 944
Nick Avatar asked Nov 23 '25 14:11

Nick


1 Answers

Try to look at the .dump command of sqlite. I tried it using command line and it works. You can find details here.

like image 73
Yury Avatar answered Nov 26 '25 09:11

Yury



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!