Internal or external uri when receiving data from a mediator

I hope someone can clarify this for me ... I'm working on a simple video player application that plays a video clip stored on the phone.

All the examples I saw extract videos using MediaStore.Video.Media.EXTERNAL_CONTENT_URI content Uri, something like this

cursor = resolver.query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, cols, whereClause, null, sortOrder); 

But will it not limit the list to only the files stored on the SD card?

The new Android phones have a significant amount of internal memory - for example, the Samsung Galaxy S usually comes with 16 GB of internal memory and a 2 GB SD card.

Should I double-scan the mediastor with external uri contents and internal?

Again I saw 10 examples for audio and video players, and they all use only external ones.

Even checked the source code for a music player , and also pulls only from an external card.

+4
source share
2 answers

conducted a few tests and it seems like it depends on the answer. In the Android and HTC mytouch emulator, it only extracts items on the external SD card, while on the Samsung Galaxy S it actually extracts from the internal storage.

This is the part that I really hate regarding android - why such simple things are so different.

+8
source

Can you just use

MediaStore.Video.Media.INTERNAL_CONTENT_URI

+1
source

Source: https://habr.com/ru/post/1337670/


All Articles