diff options
Diffstat (limited to 'firmware/target/hosted/android/telephony-android.c')
-rw-r--r-- | firmware/target/hosted/android/telephony-android.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/hosted/android/telephony-android.c b/firmware/target/hosted/android/telephony-android.c index 64ad436ca7..fb2dc37623 100644 --- a/firmware/target/hosted/android/telephony-android.c +++ b/firmware/target/hosted/android/telephony-android.c | |||
@@ -22,14 +22,16 @@ | |||
22 | 22 | ||
23 | #include <jni.h> | 23 | #include <jni.h> |
24 | #include "kernel.h" | 24 | #include "kernel.h" |
25 | #include "system.h" | ||
25 | 26 | ||
26 | extern JNIEnv *env_ptr; | ||
27 | extern jobject RockboxService_instance; | 27 | extern jobject RockboxService_instance; |
28 | 28 | ||
29 | 29 | ||
30 | void telephony_init_device(void) | 30 | void telephony_init_device(void) |
31 | { | 31 | { |
32 | JNIEnv *env_ptr = getJavaEnvironment(); | ||
32 | JNIEnv e = *env_ptr; | 33 | JNIEnv e = *env_ptr; |
34 | |||
33 | jclass class = e->FindClass(env_ptr, "org/rockbox/RockboxTelephony"); | 35 | jclass class = e->FindClass(env_ptr, "org/rockbox/RockboxTelephony"); |
34 | jmethodID constructor = e->GetMethodID(env_ptr, class, "<init>", "(Landroid/content/Context;)V"); | 36 | jmethodID constructor = e->GetMethodID(env_ptr, class, "<init>", "(Landroid/content/Context;)V"); |
35 | 37 | ||