Accessing files on device in system.DocumentsDirectory?

Hi,

I have a level builder that runs on device and saves the data to the system.DocumentsDirectory, and though I can see the saved files in the simulator, where would I find it on the device? I’ve used an on-device file explorer, as well as, adb (monitor) but I don’t see anything. I would like to take the saved levels out and incorporate them in the main app.

Any tips?

Thanks in advance. [import]uid: 202223 topic_id: 35253 reply_id: 335253[/import]

Android does not give you access to the folder via tethering the device. iOS only gives you access if you set a certain plist key (I think).

You’re best bet might be sending them to a web server or emailing them to yourself. [import]uid: 199310 topic_id: 35253 reply_id: 140121[/import]

Thank you both. I think I’ll just build them in the simulator for now, and grab the files from the sandbox.

But to clarify, there is no known way to save a file to a user accessible directory?

Cheers. [import]uid: 202223 topic_id: 35253 reply_id: 140136[/import]

I don’t understand why, but with my Mac alone, I can’t access/read the files in the device directory when I “download” them onto my Mac. I don’t know how to open the app data on my Mac.

What I have found though is if you tether your device to your Mac and in Xcode select your App and “download” the files to DropBox, I can open the files I saved to DropBox on my PC and see and access the saved files. I then copy the files and paste them directly into my App.

I know this sounds round about, but it works slick.

Hope this helps,

Nail [import]uid: 106779 topic_id: 35253 reply_id: 140127[/import]

Android does not give you access to the folder via tethering the device. iOS only gives you access if you set a certain plist key (I think).

You’re best bet might be sending them to a web server or emailing them to yourself. [import]uid: 199310 topic_id: 35253 reply_id: 140121[/import]

Thank you both. I think I’ll just build them in the simulator for now, and grab the files from the sandbox.

But to clarify, there is no known way to save a file to a user accessible directory?

Cheers. [import]uid: 202223 topic_id: 35253 reply_id: 140136[/import]

I don’t understand why, but with my Mac alone, I can’t access/read the files in the device directory when I “download” them onto my Mac. I don’t know how to open the app data on my Mac.

What I have found though is if you tether your device to your Mac and in Xcode select your App and “download” the files to DropBox, I can open the files I saved to DropBox on my PC and see and access the saved files. I then copy the files and paste them directly into my App.

I know this sounds round about, but it works slick.

Hope this helps,

Nail [import]uid: 106779 topic_id: 35253 reply_id: 140127[/import]