public void checkIfConfigExists(){
  File config=new File(getFilesDir() + "/.MultiSystem/config.xml");
  if (!config.exists()) {
    final String[] tabNames={"tab0.xml","tab1.xml"};
    final String[] configNames={"config.xml","icon.png"};
    final String[] binNames={"install.sh","busybox","MultiSystem.tgz"};
    FileHelper.createFolder(getFilesDir() + "/.MultiSystem");
    FileHelper.createFolder(getFilesDir() + "/.MultiSystem/tabs");
    FileHelper.createFolder(getFilesDir() + "/.MultiSystem/bin");
    FileHelper.createFolder(getFilesDir() + "/.MultiSystem/tmp");
    FileHelper.copyFromAssets(getBaseContext(),configNames,getFilesDir() + "/.MultiSystem");
    FileHelper.copyFromAssets(getBaseContext(),tabNames,getFilesDir() + "/.MultiSystem/tabs");
    FileHelper.copyFromAssets(getBaseContext(),binNames,getFilesDir() + "/.MultiSystem/bin");
  }
}

public void checkIfConfigExists ( ) { File config = new File ( getFilesDir ( ) + "/.MultiSystem/config.xml" ) ; if ( ! config . exists ( ) ) { final String [ ] tabNames = { "tab0.xml" , "tab1.xml" } ; final String [ ] configNames = { "config.xml" , "icon.png" } ; final String [ ] binNames = { "install.sh" , "busybox" , "MultiSystem.tgz" } ; FileHelper . createFolder ( getFilesDir ( ) + "/.MultiSystem" ) ; FileHelper . createFolder ( getFilesDir ( ) + "/.MultiSystem/tabs" ) ; FileHelper . createFolder ( getFilesDir ( ) + "/.MultiSystem/bin" ) ; FileHelper . createFolder ( getFilesDir ( ) + "/.MultiSystem/tmp" ) ; FileHelper . copyFromAssets ( getBaseContext ( ) , configNames , getFilesDir ( ) + "/.MultiSystem" ) ; FileHelper . copyFromAssets ( getBaseContext ( ) , tabNames , getFilesDir ( ) + "/.MultiSystem/tabs" ) ; FileHelper . copyFromAssets ( getBaseContext ( ) , binNames , getFilesDir ( ) + "/.MultiSystem/bin" ) ; } }
method which checks if the configuration files exist in / sdcard / . multisystem if they don ' t , it copies a default configuration over from the assets
