This seems like a trivial question, so whoever can answer first and provide me with a resource, I'd be happy to provide you with a green tick :)

How can I write files from within native code? I want to perform some processing in C++ which will output a .txt file, so I'd like to save that to the SD card. (I tried and it told me permission denied).

Thanks!

有帮助吗?

解决方案

try to add this to your manifest

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

in default, android denies you of writing to external storage unless you specify your desire to..

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top