Suppose I'm selecting a file externally via:
Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
Uri file = data.getData();
What is the convention here to determine if a content resolver query is needed?
ContentResolver handles both the
file scheme and the
I know I could check if the uri has a file:/// prefix but that seems a bit hacky
Uri has a
I just want the file path.
There is no "file path" for a
Uri, as there is no requirement that the content be stored as a file.