I'm trying to find out if a Google Photos (picasa) user is installed to sync on my device. Is there a way to programmatically determine if synchronization is enabled for any of the google accounts configured on the user phone?
Also, is there a way to programmatically disable sync for Google Photos? If not, what is the correct intention to start activity directly on the Google Data & Sync screen so that the user can manually turn off sync?
Thanks in advance!
EDIT:
I found some code that is useful, but what is the permission string for "Google-Photos" (aka Picasa) ???
import android.provider.ContactsContract;
AccountManager am = AccountManager.get(this);
Account[] accounts = am.getAccountsByType("com.google");
boolean syncEnabled = ContentResolver.getSyncAutomatically(accounts[0], ContactsContract.AUTHORITY);
source
share