summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libjvm-android.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libjvm-android.c b/src/libjvm-android.c
index 433dfff..5592311 100644
--- a/src/libjvm-android.c
+++ b/src/libjvm-android.c
@@ -83,3 +83,19 @@ android_content_Context_getFilesDir(JNIEnv *env, jobject object, va_list args)
static jobject sv;
return (sv ? sv : (sv = (*env)->AllocObject(env, (*env)->FindClass(env, "java/io/File"))));
}
+
+jobject
+android_content_Context_getCacheDir(JNIEnv *env, jobject object, va_list args)
+{
+ assert(env && object);
+ static jobject sv;
+ return (sv ? sv : (sv = (*env)->AllocObject(env, (*env)->FindClass(env, "java/io/File"))));
+}
+
+jobject
+android_content_Context_getExternalCacheDir(JNIEnv *env, jobject object, va_list args)
+{
+ assert(env && object);
+ static jobject sv;
+ return (sv ? sv : (sv = (*env)->AllocObject(env, (*env)->FindClass(env, "java/io/File"))));
+}