mergPopActivity external on Android

This is the place to get technical support and discuss all things to do with MergEXT

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, monte

Post Reply
Sevak Ajemyan
Posts: 5
Joined: Mon Jun 06, 2016 12:09 pm

mergPopActivity external on Android

Post by Sevak Ajemyan » Tue Jun 07, 2016 3:17 pm

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

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: mergPopActivity external on Android

Post by monte » Mon Dec 19, 2016 11:41 pm

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
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Sevak Ajemyan
Posts: 5
Joined: Mon Jun 06, 2016 12:09 pm

Re: mergPopActivity external on Android

Post by Sevak Ajemyan » Tue Dec 20, 2016 7:11 am

Thank you Monte, we had solved the problem the way you mentioned.

Post Reply

Return to “MergEXT”