I want to write a simple "Hello World" GUI (not CLI) app in C++ and run it on my Android device. I tried the Hello-JNI sample from Android NDK package, but it also uses some Java code and I want to do it in pure C++ way, without JNI. Is it even possible or do I have to use some Java wrapper?
It would be nice to do it the old way – without Eclipse, just a C++ code file + makefile.
All traditional Android apps, particularly those with a user interface, will need an Activity
that can be launched by the user from the home screen's launcher, and that Activity
has to be in Java.
NDK developers are welcome to use NativeActivity
as that Activity
, so those developers do not have to mess with Java themselves. There is a sample app demonstrating it use as part of the documentation.
It would be nice to do it the old way – without Eclipse, just a C++ code file + makefile.
You certainly don't have to use Eclipse, and Eclipse support is ending in ~3 months anyway, but you do have to use the Android SDK and NDK toolchains to create an APK file, if you are trying to create a traditional Android app.