I have a problem with sharing a file via email.
I create a file in my app which I get via BLE from a unit, save it on my
phone,
and would like to share it from there using email.
I manage everything, but sending the mail doesn't allow to attach the file
like
I want - gmail reports that file is empty:
"You cannot attach an empty file".
I guess this is some permissions error that I make - What do I need to be
able to
do this?
I am saving the file in the location which I get via
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS)
and I use-permission the following:
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.READ_EXTERNAL_STORAGE
What have i forgotten?
Should I save the file to another location maybe?
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/df908707-64b4-4672-8a25-5a4f3ad1b69a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.