diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-05-08 23:33:49 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-05-08 23:33:49 +0300 |
commit | 8fb79727f8b7b9441606d8fde1d1310ff73ce505 (patch) | |
tree | dd9be7c4d994ee216cd86b0157cdcb5fb3152ef7 | |
parent | 27e0fe8e0d6b5a66669f1cb803f6f84aa5053a0b (diff) |
jvm-android: cache dir properties
-rw-r--r-- | src/libjvm-android.c | 16 |
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")))); +} |