MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL) vs MediaStore.Video.Media.EXTERNAL_CONTENT_URI


I’m looking at this MediaStore video downloader example:

And I can’t figure out what’s the difference between




The second one seems to be an alias to the first?

I can’t speak to the “alias” part. I had it in my head that getContentUri() was new to API Level 29, but according to the docs, it has been around since API Level 1. You may be able to just use MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL) for all versions.

1 Like