The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL2 NativeActivity and CMake
Peter List
Guest

Is there a simple hello world example or tutorial for SDL2 using CMake on Android (from Windows)?  I'd prefer to see an example using NativeActivity but Java is great too (or one of each).

"SDL2-2.0.3\android-project\" appears to show a Java example with a 1075 line "android-project\src\org\libsdl\app\SDLActivity.java" file, but it does not include a NativeActivity example.  I'm guessing that for a NativeActivity example, we'd need C++ code analogous to SDLActivity.java.


I notice that CMake now has built-in support for Android using nvidia tegra nsight with Visual Studio 2010, so I wonder if it's easy to use this with SDL2.


thank you for any leads