Android Question why contentChooser return value is diffrent?

fash866

Member
Licensed User
Longtime User
Hi:
I used contentChooser to choose image and vedio.

If i choose a photo from gallery, the return value is like:
"content://media/external/images/media/60294"

But if i choose a vedio from gallery,the return value some times is a .jpg file (the vedio thumbnail) like this :
"/storage/emulated/0/DCIM/Camera/......./xxx_thumbnail.jpg"
and some times like this :"content://media/external/video/media/66045"

But if i choose a vedio from a file manager,the return value is .mp4 :
"/storage/emulated/0/DCIM/Camera/VID_20150421_111916.mp4"


Is there any way that i can get the video uri like the photo? Because i want to use the same sub to handle them.
 

fash866

Member
Licensed User
Longtime User
Sorry!The problem is resolved!!
The problem is that some videos in the gallery are not in locate,is in the clound, the locate file is only a thumbnail.
 
Upvote 0
Top