Dogbonesix Active Member Licensed User Longtime User Oct 16, 2018 #1 I had a routine to send an Email with an attachment as below Dim Message As Email Message.To.Add(Value) Message.Body = "Message" Message.Subject = EditText1.text Message.Attachments.add(File.Combine(Main.StaticFolder_Pics, Label8.text) StartActivity(Message.GetIntent) It worked well but targetSdkVersion="26"/ required a different scheme for permissions which I have solved some issues but not all. I have changed the manifest and added RunTime permissions and so forth. I have tried many different times without success. Any help appreciated.
I had a routine to send an Email with an attachment as below Dim Message As Email Message.To.Add(Value) Message.Body = "Message" Message.Subject = EditText1.text Message.Attachments.add(File.Combine(Main.StaticFolder_Pics, Label8.text) StartActivity(Message.GetIntent) It worked well but targetSdkVersion="26"/ required a different scheme for permissions which I have solved some issues but not all. I have changed the manifest and added RunTime permissions and so forth. I have tried many different times without success. Any help appreciated.
DonManfred Expert Licensed User Longtime User Oct 16, 2018 #2 1. Please use [CODE]code here...[/CODE] tags when posting code! 2. What is the Path of Main.StaticFolder_Pics? 3. Where is the FileProvider used? android.jar / targetSdkVersion / minSdkVersion FileProvider Upvote 0
1. Please use [CODE]code here...[/CODE] tags when posting code! 2. What is the Path of Main.StaticFolder_Pics? 3. Where is the FileProvider used? android.jar / targetSdkVersion / minSdkVersion FileProvider
Dogbonesix Active Member Licensed User Longtime User Oct 20, 2018 #3 Thanks for the reply. 1. I am not clear on the usage of Tags. I did look in the etiquette and it mentions Tags but not on how to use them - maybe obvious. 2. Main.StaticFolder_Pics is a local folder where multiple modules can access images without writing the explicit path for every occurrence 3. Good question. I have worked on this issue - changed the manifest - trying to be consistent with new permission but I am missing some details. In fact in the app (or at least some other one) the log says rp is never assigned any value. But the apps works. The the app just creates a local folder and includes External Write permission at runtime - so I don't know what is happening. Thanks for any help. Upvote 0
Thanks for the reply. 1. I am not clear on the usage of Tags. I did look in the etiquette and it mentions Tags but not on how to use them - maybe obvious. 2. Main.StaticFolder_Pics is a local folder where multiple modules can access images without writing the explicit path for every occurrence 3. Good question. I have worked on this issue - changed the manifest - trying to be consistent with new permission but I am missing some details. In fact in the app (or at least some other one) the log says rp is never assigned any value. But the apps works. The the app just creates a local folder and includes External Write permission at runtime - so I don't know what is happening. Thanks for any help.
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2018 #4 Example of using FileProvider to send emails: https://www.b4x.com/android/forum/threads/class-fileprovider-share-files.97865/ Upvote 0
Example of using FileProvider to send emails: https://www.b4x.com/android/forum/threads/class-fileprovider-share-files.97865/