is Google Photos Uri - Android Camera

Android examples for Camera:Photo

Description

is Google Photos Uri

Demo Code


//package com.java2s;

import android.net.Uri;

public class Main {
    /**//  w ww. ja  va  2  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