private void generateJavaFile() throws IOException {
  CustomLogger.log("Generating the following file " + javaFileName);
  File mainActivityFile=new File(javaFolder,javaFileName);
  BufferedWriter mainActivityBW=createIt(mainActivityFile);
  CustomLogger.log("Generating the following file " + mainActivityFile.getAbsolutePath());
  mainActivityBW.write(javaCode);
  mainActivityBW.flush();
  mainActivityBW.close();
  CustomLogger.log("Generating the following file " + mainLayoutName);
  File mainLayoutFile=new File(javaFolder,mainLayoutName);
  BufferedWriter mainLayoutBW=createIt(mainLayoutFile);
  CustomLogger.log("Generating the following file " + mainLayoutFile.getAbsolutePath());
  mainLayoutBW.write(layoutContent);
  mainLayoutBW.flush();
  mainLayoutBW.close();
}

private void generateJavaFile ( ) throws IOException { CustomLogger . log ( "Generating the following file " + javaFileName ) ; File mainActivityFile = new File ( javaFolder , javaFileName ) ; BufferedWriter mainActivityBW = createIt ( mainActivityFile ) ; CustomLogger . log ( "Generating the following file " + mainActivityFile . getAbsolutePath ( ) ) ; mainActivityBW . write ( javaCode ) ; mainActivityBW . flush ( ) ; mainActivityBW . close ( ) ; CustomLogger . log ( "Generating the following file " + mainLayoutName ) ; File mainLayoutFile = new File ( javaFolder , mainLayoutName ) ; BufferedWriter mainLayoutBW = createIt ( mainLayoutFile ) ; CustomLogger . log ( "Generating the following file " + mainLayoutFile . getAbsolutePath ( ) ) ; mainLayoutBW . write ( layoutContent ) ; mainLayoutBW . flush ( ) ; mainLayoutBW . close ( ) ; }
generates the mainactivity java code for exemple and its associated layout
