From 5a079a2d114f96d4847d1ee305d5b7c16eeec50e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 27 Dec 2025 12:03:39 -0800 Subject: Initial commit --- .../android-project/app/jni/src/YourSourceHere.c | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 contrib/SDL-3.2.8/android-project/app/jni/src/YourSourceHere.c (limited to 'contrib/SDL-3.2.8/android-project/app/jni/src/YourSourceHere.c') diff --git a/contrib/SDL-3.2.8/android-project/app/jni/src/YourSourceHere.c b/contrib/SDL-3.2.8/android-project/app/jni/src/YourSourceHere.c new file mode 100644 index 0000000..87b8297 --- /dev/null +++ b/contrib/SDL-3.2.8/android-project/app/jni/src/YourSourceHere.c @@ -0,0 +1,26 @@ +#include +#include + +/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ +/* */ +/* Remove this source, and replace with your SDL sources */ +/* */ +/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ + +int main(int argc, char *argv[]) { + (void)argc; + (void)argv; + if (!SDL_Init(SDL_INIT_EVENTS | SDL_INIT_VIDEO)) { + SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_Init failed (%s)", SDL_GetError()); + return 1; + } + + if (!SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, "Hello World", + "!! Your SDL project successfully runs on Android !!", NULL)) { + SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL_ShowSimpleMessageBox failed (%s)", SDL_GetError()); + return 1; + } + + SDL_Quit(); + return 0; +} -- cgit v1.2.3