1

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?

PS: Testing under Galaxy Tab.

Marcos Vasconcelos
  • 18,136
  • 30
  • 106
  • 167

2 Answers2

3

Have you tried:

fopen("/sdcard/filename.ext", "r+")

?

Brandon
  • 2,900
  • 1
  • 23
  • 36
1

Please read this answer, things are little bit complicated for Galaxy Tab

Community
  • 1
  • 1
tomash
  • 12,742
  • 15
  • 64
  • 81