In order to share a file with other apps, the simplest way seems to be using the external storage as a temporary place to keep your file. However it has many drawbacks: more permissions are needed, you have less control and you leave more mess. Here is a solution to avoid this!