Java tutorial
//package com.java2s; import android.app.backup.*; import android.content.Context; public class Main { public static boolean NEED_BACKUP = false; public static void requestBackup(Context context) { if (NEED_BACKUP) { BackupManager backupManager = new BackupManager(context); backupManager.dataChanged(); } } }