Where's the file?

I'm able to create and write files from the simulator. The files show up fine in the Sandbox Documents folder. But, when I install and run the same app on my android device the file does not show in the documents folder on the device.

My guess is that security and permissions are not set so that the file is viewable or can be edited by other android apps. Is that what is happening.

I think it has something to do with the following but I could be wrong.

http://developer.android.com/guide/topics/security/security.html

Any data stored by an application will be assigned that application's user ID, and not normally accessible to other packages. When creating a new file with getSharedPreferences(String, int), openFileOutput(String, int), or openOrCreateDatabase(String, int, SQLiteDatabase.CursorFactory), you can use the MODE_WORLD_READABLE and/or MODE_WORLD_WRITEABLE flags to allow any other package to read/write the file. When setting these flags, the file is still owned by your application, but its global read and/or write permissions have been set appropriately so any other application can see it.

Glenn

Probably you already saw this but just in case: http://developer.anscamobile.com/content/files

"Applications are sandboxed meaning your files (e.g. application images, data, preferences) are stored in a location that no other application can access."

Thank you for the link I didn't see the page before and it answers all my questions about files.

Sorry for the bad title of the post that's probably why it got buried so easily.

views:1630 update:2011/10/8 15:12:54
corona forums © 2003-2011