GetFilesDir() from NDK?

前端 未结 2 1445
盖世英雄少女心
盖世英雄少女心 2020-12-07 01:08

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

2条回答
  •  误落风尘
    2020-12-07 01:43

    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.

提交回复
热议问题