is Google Photos Uri - Android android.net

Android examples for android.net:Uri

Description

is Google Photos Uri

Demo Code

import android.net.Uri;

public class Main{

    /**//from ww  w.ja  va2 s  .c  o m
     * @param uri The Uri to check.
     * @return Whether the Uri authority is Google Photos.
     */
    public static boolean isGooglePhotosUri(Uri uri) {
        return "com.google.android.apps.photos.content".equals(uri
                .getAuthority());
    }

}

Related Tutorials