Page 1 of 1

mergPopActivity external on Android

Posted: Tue Jun 07, 2016 3:17 pm
by Sevak Ajemyan
Hi there,

I use mergPopActivity external to attach an image to an email or share it via social sites. This works correctly and opens the applications for sharing image.
I export the image into documents folder, but the external doesn't attach the file to the email, it shows error message "Permisssion denied for the attachment".

I even tried to change the folder for exporting the image, to see if the problem is with finding the documnets folde path. But no, I still got the same error. So I think, the problem isn't with the folder, but in the external itself.

Can you please review the code and let me know if there is any solution to this ?

Code: Select all

 try
      
      put "" into tText
      put "" into tUrl
          
      export last image of card "sendpostcard" to FILE (specialFolderPath("documents")&"/postcardimage.jpg") as jpeg
      
      put url ("binfile:"&specialFolderPath("documents")&"/postcardimage.jpg") into tImage
      
      mergPopActivity tText,tImage,tUrl
      
   catch e
      
   end try
Thanks,

Sevak

Re: mergPopActivity external on Android

Posted: Mon Dec 19, 2016 11:41 pm
by monte
Sorry for the slow response on this!

For others reading this mergAndroid is not generally available so currently only people that had mergExt access have it.

The file needs to be saved to a public directory.

Cheers

Monte

Re: mergPopActivity external on Android

Posted: Tue Dec 20, 2016 7:11 am
by Sevak Ajemyan
Thank you Monte, we had solved the problem the way you mentioned.