Android SQLite Dump Database From Code For Error Reporting
问题 I'm working on a diagnostic tool for one of my android programs. In essence, if a user is having issues, I'd like to do something like an SQLite dump (reference: http://www.sqlite.org/sqlite.html) into a string, which I can then email. Does anyone know if there an easy way to do this from within an android program, or am I going to have interact with the android OS and run the commands that way? 回答1: I solved my own problem, by doing a dump of the database to a file, then reading the file