This is now possible with the latest NDK. To do this, you need an emulator or phone running Android 2.3, but the NativeActivity documentation provides an example.
Unfortunately, this is somewhat more complicated than the simple hello world example, and main is android_main. You still need to worry about the life cycle of your application, as in Java, and the only real way to draw on the screen is to use OpenGL ES. It seems to be designed for writing Android games.
richq
source share