PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Android: Writing/Saving files.

coreman2200 · 02 May 2012, 07:00 UTC
Hello
For the game that we are currently working on, we utilized the example provided to save/load config files. We have not been able to write/save to this file, unfortunately. I've tried adjusting the code/filename to point to the readonlypath but this has not been successful, either. I am making an assumption, but I figure this will be an issue later on as well when we port to iPhone.

Has anyone figured this out, specifically, how to save files to the android in a manner that maintains cross-platform portability (specifically for iPhone)?
coreman2200 · 18 May 2012, 02:27 UTC
Resolved the issue on the Android ~ simply a matter of updating your Android Manifest file to include the user permission to write to the sdcard.

In AndroidManifest.xml:
Code:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE">
Hi coreman2200. Glad your issue is resolved. Thanks for your reply.