I’m currently doing some debugging and I was wondering is it possible to display the contents of the phones SQLite database via the SDK? I know it’s possible to do this via queries phone side. But I was just curious could you do it via the SDK?
Share
You can use Eclipse’s File Manager to get a file from the device, from sdcard while it’s in usb mode. You have this option only as you cannot get the device into Eclipse and mount the SD Card in the same time. You have to use Eclipse.
Here is the code to export the database to SDCard
On a cursor you always can call:
DatabaseUtils.dumpCursorToString(cur);
to get a raw String representation of the cursor