5

I'm developing a native apk for android with NDK 5.

My question is, how do I access to write and read from external SD card from native code?

  • could you be more specific? Do you have a question about which path to read from or how to open a file in C? – Matthew Mar 01 '11 at 20:21

1 Answers1

3

It works the same as Java code.

You need to use the SDK API Environment.getExternalStorageDirectory() in your Java code and then pass that to your native code, accessing it like a normal path.

Matthew
  • 44,826
  • 10
  • 98
  • 87