private static void restoreUserProfile(final File databasesDir,final String account) throws IOException {
  File srcDir=new File(databasesDir,account);
  String[] listOfDbFiles=srcDir.list(sFilenameDbFilter);
  if (listOfDbFiles == null) {
    throw new FileNotFoundException("Failed to find " + DB_FILE_EXTENSION + " files at : "+ databasesDir.getPath());
  }
  for (  String dbFile : listOfDbFiles) {
    File srcFile=new File(srcDir,dbFile);
    FileUtils.copyFileToDirectory(srcFile,databasesDir,true);
  }
}

private static void restoreUserProfile ( final File databasesDir , final String account ) throws IOException { File srcDir = new File ( databasesDir , account ) ; String [ ] listOfDbFiles = srcDir . list ( sFilenameDbFilter ) ; if ( listOfDbFiles == null ) { throw new FileNotFoundException ( "Failed to find " + DB_FILE_EXTENSION + " files at : " + databasesDir . getPath ( ) ) ; } for ( String dbFile : listOfDbFiles ) { File srcFile = new File ( srcDir , dbFile ) ; FileUtils . copyFileToDirectory ( srcFile , databasesDir , true ) ; } }
restore user account profile
