Search code examples
androidandroid-sqliteandroid-cursor

How to know what is behind SQLiteCursor's address seen during debugging?


I am debugging an application and when the Cursor retrieves a pointer from the database, I see something like this

How can I know what means the value behind @? How can I bind this address to the database value behind it?

Why do I need this? The app is behaving differently on 2 devices with 2 Android systems. I am cross debugging both and would like to know what the cursor returned on each device. For example, the value behind @ on another device is a 4-digit integer.


Solution

  • The output is that of Object.toString() and the number part is the hashCode(), not really an address.

    For Cursor content debugging, have a look at DatabaseUtils.dumpCursor().