Java tutorial
//package com.java2s; //License from project: Apache License import android.net.Uri; public class Main { /** * @param uri The Uri to check. * @return Whether the Uri authority is DriveDocument. */ public static boolean isDriveDocument(Uri uri) { return "com.google.android.apps.docs.storage".equals(uri.getAuthority()); } }