I’m starting to use Corona and I’m having a problem to access files on Android devices.
Document directory (system.DocumentsDirectory is pointing to something like “/data/data /…” and I can not find this directory using the Android File Manager.
It is possible to set the document directory to point to Android document root directory (root of phone memory)?
If possible, how to do this?
Thanks in advance for any help.
Fernando Jefferson [import]uid: 182945 topic_id: 33204 reply_id: 333204[/import]
Android’s tools do not give you access to those paths unless you’ve rooted your device.
You cannot change where system.DocumentsDirectory points to. It’s in your apps sandbox. This is for the safety of you and all of us from malicious code.
[import]uid: 19626 topic_id: 33204 reply_id: 131933[/import]
Thanks for your reply.
More information about my problem:
a) I need to create a directory in the phone memory to creates some audio files in it and then copy them using a USB connection
b) I can record a audio file. But I’ve tried to discover were the file is being created. system.DocumentsDirectory is pointing to something like “/data/data /…”
I can’t see this directory using Android File Manager.
c) I have several apps that create files in the phone memory. For example:
Level 1 -> Phone memory
Level 2 ------> Android
Level 3 ----------> Data
Level 4 ----------------> com.google.a … apps.books
Level 5 ----------------------> Files
Level 6 ---------------------------->Volumes
Level 7 ---------------------------------> (several directories)
I will post some images about it
Did You understand my problem? Could you help me about it?
FJ [import]uid: 182945 topic_id: 33204 reply_id: 131945[/import]
a) Corona now supports LFS (Lua File System) which gives you the ability to create directories. There is a really good blog post on it.
b) Correct. You cannot see that directory unless you “root” your device. Android by default hides that directory from being accessed even with ddms or adb.
c) I don’t believe Corona can do that at this time. Also you can’t access the external data card either.
[import]uid: 19626 topic_id: 33204 reply_id: 131952[/import]
Android’s tools do not give you access to those paths unless you’ve rooted your device.
You cannot change where system.DocumentsDirectory points to. It’s in your apps sandbox. This is for the safety of you and all of us from malicious code.
[import]uid: 19626 topic_id: 33204 reply_id: 131933[/import]
Thanks for your reply.
More information about my problem:
a) I need to create a directory in the phone memory to creates some audio files in it and then copy them using a USB connection
b) I can record a audio file. But I’ve tried to discover were the file is being created. system.DocumentsDirectory is pointing to something like “/data/data /…”
I can’t see this directory using Android File Manager.
c) I have several apps that create files in the phone memory. For example:
Level 1 -> Phone memory
Level 2 ------> Android
Level 3 ----------> Data
Level 4 ----------------> com.google.a … apps.books
Level 5 ----------------------> Files
Level 6 ---------------------------->Volumes
Level 7 ---------------------------------> (several directories)
I will post some images about it
Did You understand my problem? Could you help me about it?
FJ [import]uid: 182945 topic_id: 33204 reply_id: 131945[/import]
a) Corona now supports LFS (Lua File System) which gives you the ability to create directories. There is a really good blog post on it.
b) Correct. You cannot see that directory unless you “root” your device. Android by default hides that directory from being accessed even with ddms or adb.
c) I don’t believe Corona can do that at this time. Also you can’t access the external data card either.
[import]uid: 19626 topic_id: 33204 reply_id: 131952[/import]
Hi guys, I have exactly same problem. no matter what access is there, can you please help me to save my files and be able to get them by a USB when connecting the device to a PC.
Simply I want to save my data to a file and then be able to see the file, copy it, email it or whatever, as long as I can see where the files are saved to the device.
Otherwise is there a way to send through blutooth email etc?
many thanks
Hi guys, I have exactly same problem. no matter what access is there, can you please help me to save my files and be able to get them by a USB when connecting the device to a PC.
Simply I want to save my data to a file and then be able to see the file, copy it, email it or whatever, as long as I can see where the files are saved to the device.
Otherwise is there a way to send through blutooth email etc?
many thanks