Created
May 8, 2020 18:12
-
-
Save varundwarkani/f30bffd0049d5e1c7455dc3eda013897 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private boolean validFile(Uri fileUri) { | |
ContentResolver cr = this.getContentResolver(); | |
String mime = cr.getType(fileUri); | |
return "application/octet-stream".equals(mime); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment