How to receive shared content on Android devices?

I am trying to make one of my Windows applications working in Android.

For this app I need to open one or more XML file(s).
Opening a file using the file Chooser works. (only I get a external URL for an internal file when I use the native Chooser)

I also want this app to open the file when another app shares content with it.
Where can I find an example how to receive shared content in Android using Juce.
And the best way to register the receive intent.