aboutsummaryrefslogtreecommitdiffstats
path: root/android/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-01 20:20:29 +0100
committerMax Kellermann <max@duempel.org>2014-03-01 22:20:28 +0100
commitb8f1850bba98685e978025041e495198627b57f5 (patch)
treea406368074249d77e84572a4f228ea1fcfd19104 /android/src
parent5268f55344229f70e3565f63671eb582eaff733f (diff)
downloadmpd-b8f1850bba98685e978025041e495198627b57f5.tar.gz
mpd-b8f1850bba98685e978025041e495198627b57f5.tar.xz
mpd-b8f1850bba98685e978025041e495198627b57f5.zip
db/Configured: store database file in cache directory
Add class Context which wraps the Android/Java Context class and add a JNI wrapper for method Context.getCacheDir().
Diffstat (limited to 'android/src')
-rw-r--r--android/src/Bridge.java4
-rw-r--r--android/src/Main.java2
2 files changed, 4 insertions, 2 deletions
diff --git a/android/src/Bridge.java b/android/src/Bridge.java
index d1dfec894..dc487fe30 100644
--- a/android/src/Bridge.java
+++ b/android/src/Bridge.java
@@ -19,9 +19,11 @@
package org.musicpd;
+import android.content.Context;
+
/**
* Bridge to native code.
*/
public class Bridge {
- public static native void run();
+ public static native void run(Context context);
}
diff --git a/android/src/Main.java b/android/src/Main.java
index 01974af6d..3910c850d 100644
--- a/android/src/Main.java
+++ b/android/src/Main.java
@@ -57,6 +57,6 @@ public class Main extends Activity implements Runnable {
}
@Override public void run() {
- Bridge.run();
+ Bridge.run(this);
}
}