Java tutorial
//package com.java2s; import android.net.Uri; public class Main { /** * @param uri The Uri to check. * @return Whether the Uri authority is GoogleDriveLegacyStorageProvider. */ private static boolean isGoogleDriveLegacyStorageDocument(Uri uri) { return "com.google.android.apps.docs.storage.legacy".equals(uri.getAuthority()); } }