Use exit()
Does it help?
Thank you for your response, Dianne. When you say "Don't", do you mean
that I cannot 'finish' a native activity?
This would be a major limitation for us as we require one particular
activity to be implemented natively, but all others can be implemented
in Java and using the Android SDK.
I also need to be able to pass data between my native activity, and my
Java code. For instance, I would like whatever data is collected in
the native activity, to be passed onto my Java code so that I can
build the UI using the Android SDK. Is this possible and is there an
example of how to do this using JNI?