/CursorASCIITable

A helper to log / debug Android Cursors by drawing a ASCII Table.

Primary LanguageJava

#Cursor ASCII Table

A helper to log / debug Android Cursors.
It will output a ASCII with the Cursors data in it.
There is a limitation with line wrapping in logcat, so you should limit it to the columns that are important.

###Dependency

###Usage

String[] limit = new String[] { Contacts._ID, Contacts.DISPLAY_NAME };
Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);

CursorASCIITable.d(c, limit);