Is there a way to get the application\'s directory to save private data to a file for my application directly from the NDK? In other words, I need an equivalent of the Java
If you are using NativeActivity then you have access from native code to an ANativeActivity instance (see /platforms/android-9/arch-arm/usr/include/android/native_activity.h) which has internalDataPath and externalDataPath members.