Back to project page sms-backup-plus.
The source code is released under:
Apache License
If you think the Android project sms-backup-plus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.zegoggles.smssync.preferences; /*from ww w . j a v a2 s . c o m*/ import android.annotation.TargetApi; import android.app.backup.BackupManager; import android.util.Log; import static com.zegoggles.smssync.App.LOCAL_LOGV; import static com.zegoggles.smssync.App.TAG; @TargetApi(8) public class BackupManagerWrapper { static Boolean available = null; static boolean available() { if (available == null) { try { Class.forName("android.app.backup.BackupManager"); available = Boolean.TRUE; } catch (Exception ex) { available = Boolean.FALSE; } } return available; } public static void dataChanged(android.content.Context context) { if (available()) { if (LOCAL_LOGV) Log.v(TAG, "dataChanged()"); new BackupManager(context).dataChanged(); } } }