On Jun 17, 4:45 pm, som <[email protected]> wrote: > As i was going through the android_media_MediaPlayer.cpp in \\base > \media\jni to understand the way of operations of the android media > framework, i saw the signatures of the JNI functions don't contain > JNIEXPORT and JNICALL macros. Have these macros become redundant in > JNI 1.4?
They mainly exist for non-Linux platforms (notably Windows). dalvik/ libnativehelper/include/nativehelper/jni.h has: #define JNIIMPORT #define JNIEXPORT #define JNICALL That is, they don't do anything. Android developers have tended to ignore them (or be unaware of their existence) when writing framework code, so much of the JNI code in the system doesn't use them. Code *should* use these, especially if portability to non-Android systems is important. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

