Code example for ProviderInfo

0
        mWriteAccessLatch = new CountDownLatch(1);
 
        // Set up the sub-provider for handling profiles. 
        mProfileProvider = getProfileProvider();
        mProfileProvider.setDbHelperToSerializeOn(mContactsHelper, CONTACTS_DB_TAG);
        ProviderInfo profileInfo = new ProviderInfo();
        profileInfo.readPermission = "android.permission.READ_PROFILE";
        profileInfo.writePermission = "android.permission.WRITE_PROFILE";
        mProfileProvider.attachInfo(getContext(), profileInfo);
        mProfileHelper = mProfileProvider.getDatabaseHelper(getContext());
 
        return true; 
    } 
 
    public ProfileProvider getProfileProvider() { 
        return new ProfileProvider(this);
    } 
 
    @Override 
    public void onBegin() { 
        if (VERBOSE_LOGGING) {