diff --git a/inventory/src/main/java/org/flyve/inventory/Utils.java b/inventory/src/main/java/org/flyve/inventory/Utils.java index 58225760e..143e14c34 100644 --- a/inventory/src/main/java/org/flyve/inventory/Utils.java +++ b/inventory/src/main/java/org/flyve/inventory/Utils.java @@ -290,8 +290,8 @@ private static boolean isExternalStorageWritable() { * @param message the message * @param filename name of the file */ - public static void storeFile(Context context, String message, String filename) { - String path = context.getCacheDir().getAbsolutePath(); + public static void storeFile(String message, String filename) { + String path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath(); File dir = new File(path); String state = Environment.getExternalStorageState();