Arrange these lines of code intended to output the table data from a ContentResolver.
ContentResolver
Query
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
}
contentResolver.query(uri, arrayOf("*"), "name = ?", arrayOf(name), null)?.use { cursor ->
while (cursor.moveToNext()) {
}.joinToString())
name + "=" + cursor.getString(i)
println(cursor.columnNames.mapIndexed { i, name ->
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.