But as I already imagined, it did not work .. Does anyone know how I can create a new folder inside the root folder of the device? (The folder that I call root folder, is the one in which you have all the folders of the phone, the Whatsapp folder, Download, etc ...)

roaminggamer

Hi. I think part of the reason nobody is helping is others (like myself) may have a lot of questions about what you want to achieve and why.

Additionally, AFAIK, there is not a lot of uniformity in the file structure of Android file-systems on different manufactures' devices. i.e. Different devices may have different folder paths to similar storage. This means, coming up with a universal solution may not work in all cases, thus helping write one may lead to you saying, "it doesn't work on my device."

I can tell you from experience, nobody who spends time helping by writing a sample wants this to be the end result and response.

So, let me ask some questions and hope that the answers intrigue folks enough for some help to be forthcoming.

1. Why do you want to do this? What purpose does it serve? What requirement of your app does it resolve?

On first glance, it seems like a very odd thing to do and a little sketchy. I don't want to be unkind, but I'm a little hesitant to help write code that can write outside the sandbox and essentially bypass the security of Android.

That said, I'm sure there are many perfectly reasonable uses of this. However, knowing what you want to do, there may be safer and better solutions folks can suggest.

2. What are the make, model, and Android version of the device(s) you are testing on? Knowing this may help.

3. Would you consider making, zipping up, then sharing a functional micro project that attempts to do this so folks can directly examine your code?

The only way to solve this problem is by having a real project, so asking for help is essentially asking us to code up a project for you to look at.

I know that I personally, in light of the other challenges of this question I outlined above, can't spend time on this.

I hope you get help on this, but you may need to make it easier for folks to pitch in and to debug/resolve this.

pabloapdz

And well, I did not really know that you had this concern if the person will use it for good or ill, I will explain what I am doing:

I have an app that makes it easier for people to fill in boring and repetitive tasks from day to day, after completing everything, this application releases me a .CSV file. Only, let's agree on one thing. If you put your device on the computer, you want to be easy to find these tables, right? And to get a more beautiful and more professional thing, I'd need a folder inside the root folder. As if it were whatsapp, it only thinks if whatsapp did not create folders, just threw everything there and ready, it would be a terrible mess.

So I want to do just that, I want to create a folder inside the root folder, called "TABLES APP X" and inside this folder, will have a subfolder separating the days. and within these folders of the day, will have the tables in .csv

2 -

MOTO G PLAY, android 7.1.1

3 -

I did not exactly understand this item

One question, would you advise me to delete this topic and open a new one explaining these 2 items?

PS - It is worth noting, files did not show up right away. There was a several second delay before I could see them from my cable-attached PC.

I tried to put this code in the code of my project and it did not work, did not create the folder or anything, I was confused and then I downloaded the example you posted, I created the APK and downloaded it on my cell phone, then gave the following error:

I know there is a language barrier, but these are technical terms that should be universal across all languages since they are newcomers to the language scene.

(If I'm wrong in this, someone please correct me, but in my experience living and working in foreign countries, other technical Unix/Linux folks knew what I meant when I said 'root').

Since we're talking about Android, I have to assume you know a little bit about Linux and Android. If not, then I understand the confusion.

Note: Your use of the term 'internal folder' has no meaning to me. I think perhaps, you mean the 'internal storage'.

Also, and again, in my experience Android folder systems and hierarchies are NOT consistent so whatever solution you may come up with is simply not going to work universally.

You're better off coming up with something that works universally, like writing to an Amazon S3 bucket or something like that.

I understand, I will be more careful about the words, I hate to use google translator because it does not translate 100% .. Here in Brazil, "Internal folder" and "Internal storage" have the same meaning .. Now about root, mine, I confused.

External storage: This is an Android only feature where your device lets you write files too that was originally on the device's SD card (which on many Android devices is removable). On Android, this is where music, photos, and other large volume data files go. Corona does not officially support External storage. There are a couple of plugins that help here. If you can safely determine the path to external storage then you can create directories here and write files here as well.

Corona makes the lfs.* library available to you which you can use to make directories in any folder you that have write access to.

External storage: This is an Android only feature where your device lets you write files too that was originally on the device's SD card (which on many Android devices is removable). On Android, this is where music, photos, and other large volume data files go. Corona does not officially support External storage. There are a couple of plugins that help here. If you can safely determine the path to external storage then you can create directories here and write files here as well.

Corona makes the lfs.* library available to you which you can use to make directories in any folder you that have write access to.

Rob

Rob, what I want is to create a new folder where you can even create a new folder by your own device, keeping that in mind, I think I'm just searching in the wrong way ...

I want to create a new folder in this place here (I'll explain how to get there because it was too confusing from here already kk)

Settings -> Storage -> Explore (it's the last option)

Just this, I just need to create a folder there, but to have this whole job, I know it must be VERY simple just because there is an option in the device itself, but until now I have not been able to do this)

Forget the root folder, I do not want to create anything there, it was just a misconception.

I've given the idea of ​​moving an application sandbox file over there because I'm not sure if I can create direct .csv in this folder. If you could create it there at once it would be much easier and faster