Hello all,
I have a routine where an user can use the content chooser to select a media file, that will be managed by the app. But it's normal that the user selects a mpeg file as an image, an image as a gif and so on. I developed separated buttons for GIF, JPG and MPEG but this don't guarantees that the user will choose the correct media type. And when I filter the target content using the chooser mime type, many gallery interfaces hide valid files even with valid mimes and the user cant choose them.
I noticed that some programs like WhatsApp use only one button, and detect the file type doing the right process, what is the best solution.
How can I detect the choosen file type (then I could use Chooser.Show("*/*","Select") and apply the correct treatment later)?
Anybody?
I have a routine where an user can use the content chooser to select a media file, that will be managed by the app. But it's normal that the user selects a mpeg file as an image, an image as a gif and so on. I developed separated buttons for GIF, JPG and MPEG but this don't guarantees that the user will choose the correct media type. And when I filter the target content using the chooser mime type, many gallery interfaces hide valid files even with valid mimes and the user cant choose them.
I noticed that some programs like WhatsApp use only one button, and detect the file type doing the right process, what is the best solution.
How can I detect the choosen file type (then I could use Chooser.Show("*/*","Select") and apply the correct treatment later)?
Anybody?