diff --git a/mobile/src/main/AndroidManifest.xml b/mobile/src/main/AndroidManifest.xml
index ed602ec..4f4985c 100644
--- a/mobile/src/main/AndroidManifest.xml
+++ b/mobile/src/main/AndroidManifest.xml
@@ -11,6 +11,8 @@
android:required="false" />
+
+
-
\ No newline at end of file
+
diff --git a/mobile/src/main/java/net/activitywatch/android/RustInterface.kt b/mobile/src/main/java/net/activitywatch/android/RustInterface.kt
index ddc9ab4..67ca8ef 100644
--- a/mobile/src/main/java/net/activitywatch/android/RustInterface.kt
+++ b/mobile/src/main/java/net/activitywatch/android/RustInterface.kt
@@ -27,7 +27,8 @@ class RustInterface constructor(context: Context? = null) {
initialize()
if(context != null) {
- setDataDir(context.filesDir.absolutePath)
+ // See https://developer.android.com/reference/kotlin/android/content/Context#getexternalfilesdir
+ setDataDir(context.externalFilesDir.absolutePath)
}
}
@@ -114,4 +115,4 @@ class RustInterface constructor(context: Context? = null) {
Log.w(TAG, getBucketsJSON().toString(2))
Log.w(TAG, getEventsJSON("test").toString(2))
}
-}
\ No newline at end of file
+}