Code example for BackupManager

0
public class CloudBackupRequesterApi8 implements CloudBackupRequester { 
	 
	private final BackupManager mBackuper;
	 
	public CloudBackupRequesterApi8(CloudBackupRequesterDiagram diagram) {
		mBackuper = new BackupManager(diagram.getContext());
	} 
 
	public void notifyBackupManager() 
	{ 
		mBackuper.dataChanged();
	} 
	 
/* 
	public void requestRestore() 
	{ 
		mBackuper.requestRestore( 
				new RestoreObserver() { 
					@Override 
					public void restoreStarting(int numPackages) { 
						Log.d(TAG, "Restore from cloud starting.");