/[zanavi_public1]/navit/navit/android.h
ZANavi

Contents of /navit/navit/android.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29 - (hide annotations) (download)
Tue Aug 21 19:31:50 2012 UTC (11 years, 7 months ago) by zoff99
File MIME type: text/plain
File size: 609 byte(s)
some fixes
1 zoff99 2 #ifdef HAVE_API_ANDROID
2    
3     #include <jni.h>
4     extern JNIEnv *jnienv;
5 zoff99 29 extern JavaVM *cachedJVM;
6 zoff99 2 extern jobject *android_activity;
7     extern struct callback_list *android_activity_cbl;
8     extern int android_version;
9     int android_find_class_global(char *name, jclass *ret);
10     int android_find_method(jclass class, char *name, char *args, jmethodID *ret);
11     int android_find_static_method(jclass class, char *name, char *args, jmethodID *ret);
12 zoff99 29 JNIEnv* jni_getenv();
13 zoff99 2
14 zoff99 27 struct jni_object
15     {
16 zoff99 2 JNIEnv* env;
17     jobject jo;
18     jmethodID jm;
19     };
20    
21     #else
22    
23 zoff99 28 typedef int jobject;
24     typedef int jmethodID;
25    
26 zoff99 27 struct jni_object
27     {
28 zoff99 2 int dummy;
29     };
30    
31     #endif

   
Visit the ZANavi Wiki