Android Question CreateResource with multiple provider paths?

CaptKronos

Active Member
Licensed User
Longtime User
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:

B4X:
CreateResource(xml, provider_paths,
   <external-files-path name="filespath" path="" />
   <external-path name="externalpath" path="Movies" />
)

but on compilation I get this error:

B4X:
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.
 
Top