C CaptKronos Active Member Licensed User Longtime User Feb 19, 2018 #1 Hi All, I need to generate URIs from both external-path and external-files paths. I assume something like this, in the Manifest, is required: Code: Copy CreateResource(xml, provider_paths, <external-files-path name="filespath" path="" /> <external-path name="externalpath" path="Movies" /> ) but on compilation I get this error: Code: Copy Generating R file. Error res\xml\provider_paths:3: error: Error parsing XML: junk after document element Removing each of the two lines in turn results in the expected corresponding URIs working - but I need both sets! Is it possible? The docs suggest it is: https://developer.android.com/reference/android/support/v4/content/FileProvider.html#SpecifyFiles Thanks.
Hi All, I need to generate URIs from both external-path and external-files paths. I assume something like this, in the Manifest, is required: Code: Copy CreateResource(xml, provider_paths, <external-files-path name="filespath" path="" /> <external-path name="externalpath" path="Movies" /> ) but on compilation I get this error: Code: Copy Generating R file. Error res\xml\provider_paths:3: error: Error parsing XML: junk after document element Removing each of the two lines in turn results in the expected corresponding URIs working - but I need both sets! Is it possible? The docs suggest it is: https://developer.android.com/reference/android/support/v4/content/FileProvider.html#SpecifyFiles Thanks.
Erel B4X founder Staff member Licensed User Longtime User Feb 19, 2018 #2 Try it like this: Code: Copy CreateResource(xml, provider_paths, <paths> <external-files-path name="filespath" path="" /> <external-path name="externalpath" path="Movies" /> </paths> ) Upvote 0
Try it like this: Code: Copy CreateResource(xml, provider_paths, <paths> <external-files-path name="filespath" path="" /> <external-path name="externalpath" path="Movies" /> </paths> )
C CaptKronos Active Member Licensed User Longtime User Feb 19, 2018 #3 Excellent - it works. Thanks for the very fast reply. Upvote 0