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

Contents of /navit/navit/android.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (show annotations) (download)
Mon Jul 25 19:29:08 2016 UTC (4 years, 7 months ago) by zoff99
File MIME type: text/plain
File size: 1114 byte(s)
v2.0.52
1 #ifdef HAVE_API_ANDROID
2
3 #include <jni.h>
4 #include <android/bitmap.h>
5 extern JNIEnv *jnienv;
6 extern JavaVM *cachedJVM;
7 extern jobject *android_activity;
8 extern jobject *main_map_bitmap;
9 extern AndroidBitmapInfo *main_map_bitmapinfo;
10 extern struct callback_list *android_activity_cbl;
11 extern int android_version;
12
13 AndroidBitmapInfo main_map_bitmapinfo2;
14
15 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 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 void set_vehicle_values_to_java_delta(int dx, int dy, int dangle, int dzoom, int l_old, int l_new);
21 void android_send_generic_text(int id, char *text);
22
23 JNIEnv* jni_getenv();
24
25 struct jni_object
26 {
27 JNIEnv* env;
28 jobject jo;
29 jmethodID jm;
30 };
31
32 #else
33
34 typedef int jobject;
35 typedef int jmethodID;
36
37 struct jni_object
38 {
39 int dummy;
40 };
41
42 #endif

   
Visit the ZANavi Wiki