Now, I've managed to get list of album and photos using this module..https://github.com/quickstonesw/Appcelerator-Urban-Image-Library.
So, in my app, I can create new album, delete album, move photo from album to another album and delete photo. When i create album and delete album, it works nicely in app but after creating new album, when check in default photo library, the album is not there. Right now, I'm working on move photo and delete photo.
My question is:
1) if it is possible, how can I add the album that I've created in app to the default photo library?
2) if question 1 is possible, how do I delete it?
3) How do I move photo from album to album and reflect it back to default photo library?
4) delete the photo from photo library if i deleted it in my app
Is all question above possible to be done or not? Is there another module that I can use to achieve it? I'm using titanium latest SDK 3.0.2 and am building for iPhone only.
Related
I am looking for the feature just like the Whatsapp has. They have an album named Whatsapp in iPhone Photos app and all the video and photos of whatsapp can be found there.
I have created the album with custom and also able to save image in it, but how can we download video from url directly into the folder ?
I have a macOS Photos extension where I update the metadata for the photo. The metadata (location information) is saved correctly, but the Photos application does not recognise the changes since it seems like it is storing its own location information about the photos separately from the photo itself. If I manually export the photo from Photos and re-import it, the location is properly shown in Photos.
Is there a way (in Swift) to trigger a reload of the metadata or to re-import the photo into Photos?
I have a sample application that uploads photos to a user's FB account. Of course, FB creates an album with the name of the app and loads the photos in that album.
If the user changes the name of the album, then FB still uploads photos to the same album (although the album has been renamed).
How does FB know which album belongs to my application? There are no obvious signs of linkage between my appid and the album ids / links that FB creates for the album.
Thanks in advance.
SS
There's likely an association on the backend between the AppID and the AlbumID.
There's no simple way to know your app albumID.
Three suggestions for you:
Allow the user to choose the album to upload the photo to. You can do this by uploading to albumid/photos instead of me/photos.
If you want to know your album, once you have uploaded one photo, you can use the returned ID along with FQL to query the photo table. This works independently of album and will let you query on object_id and return the album object id. e.g., SELECT album_object_id from photo where object_id = '(yourobjectid)' Store this, it won't change.
Upload a tiny test photo and use the method from 2 above. This will let you know your current album id. Then delete the tiny test photo.
Hope this helps.
How do you create a photo album coding an iphone app that appears in the photo albums that sync to iPhoto?
I can read and write media using the various classes (eg UiImagepickerController)no problems. Just wondering if that extends to being able to create albums also.
No you can't do this. You can save images only in the Camera Role album
Currently I am saving a UIImage to the photos album using UIImageWriteToSavedPhotosAlbum, which works fine.
Is there a way to then open the Photos app showing the just-saved photo? (I assume my app must close before opening Photos, which is fine.)
Simply opening the Photos app to the Saved Photos Album would be a not-quite-as-good alternative if the above isn't possible.
Thanks.
It is not possible to open the photos app. But, as a workaround, you can open the album where you saved the photo using UIImagePickerViewController. Then, the user can click on the image and see it. That way, they won't even have to exit your application.
No, it's not possible using the SDK. If this is something you think is needed, you should file an enhancement request.