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

Contents of /navit/navit/android.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 41 - (hide annotations) (download)
Tue Aug 11 18:50:37 2015 UTC (8 years, 7 months ago) by zoff99
File MIME type: text/plain
File size: 1062 byte(s)
many fixes, and new features
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 30
22 zoff99 29 JNIEnv* jni_getenv();
23 zoff99 2
24 zoff99 27 struct jni_object
25     {
26 zoff99 2 JNIEnv* env;
27     jobject jo;
28     jmethodID jm;
29     };
30    
31     #else
32    
33 zoff99 28 typedef int jobject;
34     typedef int jmethodID;
35    
36 zoff99 27 struct jni_object
37     {
38 zoff99 2 int dummy;
39     };
40    
41     #endif

   
Visit the ZANavi Wiki