I'm trying to share a file using the something like intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
the file is located in the path data/data/my.package.name/folder/fileName
and whenever I try to send the file using the Gmail app I get an error.
I think this is due to the read permissions of the file, and my question is how can give the intent access to the file, without having to copy the file to another location.
Thanks