Access to an external SD card from the built-in code

I am developing my own apk for Android with NDK 5.

My question is: how can I access to write and read from an external SD card from my own code?

+4
source share
1 answer

It works the same as Java code.

You need to use the Environment.getExternalStorageDirectory () SDK API in your Java code, and then pass it to your own code, receiving it as a normal path.

+3
source

Source: https://habr.com/ru/post/1341862/


All Articles