Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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();
        }
    }
}