Code example for ContentProviderClient

Methods: applyBatch

0
		} 
 
		public void applyChanges() { 
			try { 
				Log.v(TAG, "Applying " + mBatch.size() + " operations to contacts DB...");
				mProvider.applyBatch(mBatch); 
				mBatch.clear(); 
			} catch (RemoteException e) {
				Log.e(TAG, "Could not sync contacts", e);
				mSyncResult.databaseError = true; 
			} catch (OperationApplicationException e) {
				Log.e(TAG, "Could not sync contact", e);
				mSyncResult.databaseError = true; 
			} 
		} 
	} 
	 
	public LDAPSyncAdapter(Context ctx)
	{ 
		super(ctx, true);