سؤال

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