How do I check file type on Android?

Tiên Hương

New member
How do I check file type on Android?
Answer
To get the data type of a shared file given its content URI, the client app calls ContentResolver. getType() . This method returns the file’s MIME type. By default, a FileProvider determines the file’s MIME type from its filename extension.
 

Tìm kiếm

Back
Top