Android examples for android.net:Uri
is Uri External Storage Document
import android.net.Uri; public class Main{ /**/* w w w . ja v a 2 s.c o m*/ * @param uri * The Uri to check. * @return Whether the Uri authority is ExternalStorageProvider. */ private static boolean isExternalStorageDocument(Uri uri) { return "com.android.externalstorage.documents".equals(uri .getAuthority()); } }