Code example for SharedPreferencesBackupHelper

0
public class BackupAgent extends BackupAgentHelper {
 
    @Override 
    public void onCreate() { 
        addHelper("shared_pref", new SharedPreferencesBackupHelper(this,
                getPackageName() + "_preferences"));
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java