I’m creating an app that applies filters (overlay images) on top of images.
first it takes a picture, then you can select a filter (a png transparent image).
after you select the overlay image you have a button to save.
what I do is display.save the group where is the image taken by the user and the transparent png. it will save it to a temporary directory on device. after this i will use media.save of that file to the user library.
all worked fine on mac simulator.
then i passed to the ipad and worked fine. tried on android, the nightmare began. on my htc10 with android 7,
it will create an image on the library but will not show the overlay image. how is that possible? i don’t have a clue. on a nexus 7 with android 6. it will save 2 images, one with overlay image other, clean, without it. still don’t have a clue how this is possible since i media.save from a file that should have the overlay. i put 3seconds delay on each step, to give it time to make sure it is saved on device…and still same result.
I made a code to get the tempory file i saved with the overlay image, and that image is with the overlay image.
and like I said in IOS it work fine on 3 different devices i tried.
resumed:
group image taken by user+transparent png>temporary file.jpg>library (here its where on android it will mess up)
if I remove media.save of my code (1 line) and check my temporary file. it is ok, with the overlay image.
media.save is making same strange behavior on android. can someone confirm that before i make another bug report?
is there any way I can go from my group images, saving them directly to the gallery device? not to the temporary directory?
regards,
Carlos.