is Uri Google Photos Uri - Android android.net

Android examples for android.net:Uri

Description

is Uri Google Photos Uri

Demo Code

import android.net.Uri;
public class Main{

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

}

Related Tutorials