How it works?
You have accessed this app with one tap, you have already moved files from Sketchub folder to Sketchware Pro.
To perform this action again, restart the application by "killing that application's process."
You no longer need to manually restore the ".swb" project.
File srcDir = new File("/storage/emulated/0/Download/Sketchub/Sketchware Pro/");
File destDir = new File("/storage/emulated/0/.sketchware/backups/");
if (!destDir.exists()) {
destDir.mkdirs();
}
File[] files = srcDir.listFiles(new FilenameFilter() {
@Override
public boolean accept(File dir, String name) {
return name.endsWith(".swb");
}
});
if (files != null) {
for (File file : files) {
File destFile = new File(destDir, file.getName());
if (file.renameTo(destFile)) {
Log.d("MoveFile", "File moved successfully: " + file.getName());
} else {
Log.d("MoveFile", "Failed to move file: " + file.getName());
}
}
}
©2024 Sketchub | User Policy