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

Contents of /navit/navit/android.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (hide annotations) (download)
Mon Jul 25 19:29:08 2016 UTC (7 years, 8 months ago) by zoff99
File MIME type: text/plain
File size: 1114 byte(s)
v2.0.52
1 zoff99 2 #ifdef HAVE_API_ANDROID
2    
3     #include <jni.h>
4 zoff99 40 #include <android/bitmap.h>
5 zoff99 2 extern JNIEnv *jnienv;
6 zoff99 29 extern JavaVM *cachedJVM;
7 zoff99 2 extern jobject *android_activity;
8 zoff99 40 extern jobject *main_map_bitmap;
9     extern AndroidBitmapInfo *main_map_bitmapinfo;
10 zoff99 2 extern struct callback_list *android_activity_cbl;
11     extern int android_version;
12 zoff99 40
13     AndroidBitmapInfo main_map_bitmapinfo2;
14    
15 zoff99 2 int android_find_class_global(char *name, jclass *ret);
16     int android_find_method(jclass class, char *name, char *args, jmethodID *ret);
17     int android_find_static_method(jclass class, char *name, char *args, jmethodID *ret);
18 zoff99 30 void send_osd_values(char *id, char *text1, char *text2, char *text3, int i1, int i2, int i3, int i4, float f1, float f2, float f3);
19     void set_vehicle_values_to_java(int x, int y, int angle, int speed);
20 zoff99 41 void set_vehicle_values_to_java_delta(int dx, int dy, int dangle, int dzoom, int l_old, int l_new);
21 zoff99 51 void android_send_generic_text(int id, char *text);
22 zoff99 30
23 zoff99 29 JNIEnv* jni_getenv();
24 zoff99 2
25 zoff99 27 struct jni_object
26     {
27 zoff99 2 JNIEnv* env;
28     jobject jo;
29     jmethodID jm;
30     };
31    
32     #else
33    
34 zoff99 28 typedef int jobject;
35     typedef int jmethodID;
36    
37 zoff99 27 struct jni_object
38     {
39 zoff99 2 int dummy;
40     };
41    
42     #endif

   
Visit the ZANavi Wiki