Creating photo albums - iphone

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

Related

Retrieve and change data in iPhone photo library

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.

FB Photo Application and Album creation linkage

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.

Path of the photo album from iphone device

In my project, i want to do something like this.
I just want to read the Path of the photo albums from the iPhone device,from where i want to get the photos. After getting the photos, i want to display the photos as views with swiping methodology, similar in the photo albums but in my project.
Is there is a way to achieve this?
Please advice me??
Unfortunately, you can not directly access the photo library from what I am aware of, but you can always use the image picker, which seems to have your required functionality.
https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html%23//apple_ref/doc/uid/TP40007070

how to implement photo album application?

I am implementing photo album application same as default photo album application in iphone.
can any body suggest me how to start?
I've written a simple and easy to use photo browser called MWPhotoBrowser. I decided to create it as Three20, while very good, was too heavy/bloated as all I needed was a photo viewer. Take a look:
MWPhotoBrowser can display one or more images by providing either UIImage objects, or URLs to files, web images or library assets. The photo browser handles the downloading and caching of photos from the web seamlessly. Photos can be zoomed and panned, and optional (customisable) captions can be displayed. The browser can also be used to allow the user to select one or more photos using either the grid or main image view.
Have a look at the Three20 project started by Facebooks Joe Hewitt, it contains several reusable controls like a photo viewer which mimics the iPhone's Photos app.
"TTPhotoViewController emulates Apple's Photos app with all of its flick n' pinch delight. You can supply your own "photo sources", which works similiarly to the data sources used by UITableView. Unlike Apple's Photos app, it isn't limited to photos stored locally. Your photos can be loaded from the network, and long lists of photos can be loaded incrementally."
http://github.com/facebook/three20/

Save UIImage to photos album and then open Photos app

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.