android_guy android_guy - 1 year ago 67
C Question

Exit android app within native or from native

I want to exit the android app from native code. In java we do something like this:


Can this be done with Native C?

Answer Source

Use following,

#include <stdlib.h>

where EXIT_SUCCESS are the values specified by the standard to indicate successful termination.