Computer scienceMobileAndroidPersistence

MediaStore

Projection

Report a typo

You want to query the following columns from the MediaStore.Video collection:

  1. DISPLAY_NAME
  2. DURATION

Write the missing part from the projection variable that should be passed as a parameter to the query() method:

val projection = /* ... */(
    MediaStore.Video.Media._ID,
    MediaStore.Video.Media.DISPLAY_NAME,
    MediaStore.Video.Media.DURATION
)
Enter a short text

Create a free account to access the full topic