@@ -0,0 +1,760 @@
+package com.thirtysparks.apple.bot;%0A%0Aimport android.os.Environment;%0A%0Aimport java.io.*;%0A%0Apublic class FileUtil %7B%0A    public static void outputToFile(String message)%7B%0A        try %7B%0A            File logFile = new File(Environment.getExternalStorageDirectory(), %22output.txt%22);%0A            FileWriter fileWriter = new FileWriter(logFile, true);%0A            BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);%0A            bufferedWriter.write(message + %22%5Cn%22);%0A            bufferedWriter.close();%0A            fileWriter.close();%0A        %7D catch (FileNotFoundException e) %7B%0A            e.printStackTrace();%0A            // handle exception%0A        %7D catch (IOException e) %7B%0A            // handle exception%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%7D%0A

Add `FileUtil` for saving string to file, easy debug