There is some filled document xml Document doc = builder.newDocument(); which I want to save to the assets folder of my application, how can I do this? I climbed to the Internet, but I could not find information, I was probably looking bad (

    1 answer 1

    During compilation, they all add up to one folder, so you cannot store XML files with identical names in different directories. That is why, when creating an empty project, the studio makes the MainActivity class and the markup to it activity_main.xml - type, sorting - all the markup of the activity lies together. You can also do it - use prefixes by features, then at least it will be sorted

    Here you can see how to scatter them in different directories. https://medium.com/mindorks/how-to-put-android-layout-files-in-subfolders-1f7cf07ff48f