After having a look at native-activity sample, I tried it. I have also
added Appliction.mk & specified APP_PLATFORM := android-9. And now
instead of adding #inculde<GLES/egl.h>, I have written #include <EGL/
egl.h>
Then I compiled it from Cygwin, and this time it compiled
successfully, but when I run this project in eclipse, it crashes with
run time exception "java.lang.ExceptionInInitializerError".
My Android project is currently using sdk version 8 i.e. <uses-sdk
android:minSdkVersion="8" />
Is the .so file that is being generated after compiling native code is
not recognized by Android when I run this project from eclipse?
Looking forward for a piece of advice.
Rgds/ Atul Prakash Singh
On Apr 27, 12:25 pm, mic _ <
micol...@gmail.com> wrote:
> >>I have also looked to San Angeles sample code it is successfully including
>
> EGL header
>
> It doesn't include egl.h, because that include is inside an #ifndef
> ANDROID_NDK.
>
> You should look at the native-activity example, which uses EGL. And you
> might also want to consider whether you actually need EGL since it requires
> Android 2.3 or later.
>
> /Michael
>