Global.setTagBehavior(appearancePage.getTagBehavior());\r
FileOutputStream out = null;\r
try {\r
- out = new FileOutputStream(Global.getDirectoryPath()+"secure.txt");\r
+ out = new FileOutputStream(Global.getFileManager().getHomeDirFile("secure.txt"));\r
} catch (FileNotFoundException e) {\r
// if it isn't found we'll write it.\r
}\r
if (Global.username.equalsIgnoreCase("") || Global.password.equalsIgnoreCase("")) {\r
AESEncrypter aes = new AESEncrypter();\r
try {\r
- aes.decrypt(new FileInputStream(Global.getDirectoryPath()+"secure.txt"));\r
+ aes.decrypt(new FileInputStream(Global.getFileManager().getHomeDirFile("secure.txt")));\r
} catch (FileNotFoundException e) {\r
// File not found, so we'll just get empty strings anyway. \r
}\r