Get instance ID from cursor

1. What is the problem? Be very detailed.

I am trying to retrieve the list of form instances using the Uri content:// I noticed the cursor that is returned doesn't have any columns that match the instance UUID. Is there any way to get the instances UUID?

2. What app or server are you using and on what device and operating system? Include version numbers.

Device: Pixel 2XL
OS: Android 11
ODK Collect Version: 1.29.2

4. What steps can we take to reproduce the problem?

Execute the following to get back a list of form instances from ODK Collect:

val cursor = context.contentResolver.query(Uri.parse(INSTANCES_URI), null, null, null, null)

None of the columns in the cursor correspond on an instance UUID

Hi @alimomin
We're glad you're here. When you get a chance, please introduce yourself on this forum thread.

Your cursor should contain columns like:
Screenshot from 2021-01-04 09-24-37
saved instance id is in _id column, what else do you need?
If you are not sure how to access those values you can take a look at CollectTester and its ListActivity;