I implemented this code into my App, and although it works perfectly fine, it terminates the parent app! So for example, if I click the Share button in my app, it terminates my App. So if I made a mistake, or the program I chose to share with didnt implement content:// like ES File Explorer, I have to re-launch my app and redo everything to share again.
Silly question buuuuuuuuuut,
Have you double checked the logs tab and click on 'List Permissions' to make sure that you have all the correct permission added to your app?