From b8f1850bba98685e978025041e495198627b57f5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Mar 2014 20:20:29 +0100 Subject: 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(). --- android/src/Bridge.java | 4 +++- android/src/Main.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'android') 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); } } -- cgit v1.2.3