Compiling and runnning Flex demo on Android

Hello everyone,

I recently received my brand new Shield Android TV.
I have setup the development environment, and I could compile and run the Teapot sample that come with the NDK.

I have d/l’ed Flex 090. I saw that there is an Android eclipse project, but it does not seem ‘complete’. I tried various tricks, including including some sources in the jni folder, but I could not achieve to make it run.

Did somebody already succeed?

Best regards,

Stéphane

Thanks to Miles (the author of flex), I succeeded in compiling the demo using a vagrant ubuntu 14.04 and his instructions:

Flex demo can build on Linux64 OS(Suggest Ubuntu14.04 LTS) now.
The build makefile located at “demo/compiler/android/makeandroid”.
Please enter to the folder, Then run the command “make clean” in the terminal.
Then, run the command “make”.
After done, the output APK located at “demo/compiler/android/flex_project/bin/flex_demo-debug.apk”.
Please remember to copy the data* files to /mnt/sdcard/flex/data/.

However, the demo stops before launch, because the first call to eglGetDisplay() returns EGL_NO_DISPLAY (egl_setup.cpp:178).

The demo compiles against Android Platform 15. Does anybody know of any change in EGL on the NVIDIA Android stack that would make an app fail like that?

Best regards,

Stéphane