I saw in a lot of places that it\'s a problem to copy the SharedPreferences file to the sd card because every manufacturer place it somewhere else.
I want to backup
try {
input = new FileInputStream(src1);
SharedPreferences.Editor prefEdit = getSharedPreferences("prueba100", MODE_PRIVATE).edit();
prefEdit.clear();
Map entries = XmlUtils.readMapXml(input);
for (Map.Entry entry : entries.entrySet()) {
putObject(prefEdit, entry.getKey(), entry.getValue());
}
prefEdit.apply();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (XmlPullParserException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}