I've got two questions regarding blobs and the documentViewer. Before asking them, here's a code snippet with comments:
//I make a blob (an image) of an already existing view, and save it to the photo gallery var sparaV = textview.toImage(); Titanium.Media.saveToPhotoGallery(sparaV); //I, again, save the blob but this time in the applicationDataDirectory in order to reach its url var tempImage = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'b' + new Date() + '.jpeg'); tempImage.write(sparaV); //Because I want the user to be able to share the image, I create a documentViewer var previewAndShare = Titanium.UI.iOS.createDocumentViewer({url:tempImage.getNativePath()}); previewAndShare.show({animated: true});Q 1. Is there a way to reach the url of the blob/image I just saved to the photogallery? The only reason I save the image to the applicationDataDirectory as well is to get hold of the URL.
Q 2. I love the sharing function the documentViewer provides and would like to use that without having to see a preview of the image. In my app, that's just an extra step that doesn't fill a purpose. (Also, seeing the filename in the navbar is something I would like to avoid.) Is this possible? If not, it's a feature I'd like to see added to Titanium.
Thanks in advance,
Max