Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 544 Bytes

File metadata and controls

16 lines (10 loc) · 544 Bytes

#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);