Acess External SD card with NDK

╄→尐↘猪︶ㄣ 提交于 2021-02-10 15:19:40

问题


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.


回答1:


Have you tried:

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

?




回答2:


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



来源:https://stackoverflow.com/questions/4661664/acess-external-sd-card-with-ndk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!