Friday, May 6, 2011

iPhone App completed, working on thesis report

The iPhone application is completed, however improvements and fine tuning can be done.
I'm going to focus on thesis this week since the due of the draft is next Friday.
I will post screenshots and instructions on how to use the application later.

Saturday, April 30, 2011

Update progress

Sorry for the lack of update, I've been too busy with the coding and keep forgetting to update my blog.
The following list of items have been implemented:

  • When a user is not authenticate with flickr
    • they can authenticate with flickr and get a token
      • the token is used to call api methods which requires auth
  • Saving the auth token in NSUserDefaults
  • The upload photos to flickr function,
    • upload by email
    • upload by API
  • Adding geotag while the user presses the upload button.
    • this is done by method call after uploading a photo which returns the photo_id.
  • A map which shows the current user location.

The following items are still not implemented and are on the to-do list:
  • Adding emotions choices for the user to choose from when they upload the photo
    • add a tag for different emotions
  • Creating a map which maps geotagged photos onto it.

Saturday, April 16, 2011

Working on Flickr

JavaScript Object Notation is an open source json-framework wrapper for Objective-C.
The object is able to hold the geotags,and normal tags for the emotions.
All I need to do is to convert json object to flickr REST XML.
This is done by a simple HTTP GET or POST action. e.g. to request the flickr.test.echo service, invoke like this:
By default, REST requests will send a REST response.
I am currently working on how to save photos to the documents directory within an application. Some other errors occurred due to unfamiliar with Objective-C. Took me quite a lot of time to solve those simple issues. Hopefully the upload of photos would be successfully done this week.

Sunday, April 10, 2011

Deploying iPhone app

The deployment of the first iPhone app is done successfully. The product includes the basic interface of the system. With the use of views and controllers, a HomeView, CameraView, PhotosView and MapView as well as their corresponding controllers are created. Understanding and learning Objective-C takes a fair amount of time, however Xcode provides many tips for auto completion of code.The understanding of view editor is still ambiguous to me.
The next step is to implement the core requirements of the project - the collection of image data, and representing in the mapview.

Wednesday, April 6, 2011

interface design

Working on interface design, went through a few sample codes on youtube about iphone accessing camera and photo library. Also being able to view a map, in the use of Google Map.

Monday, April 4, 2011


A bit of functional and non-functional requirements for the system:

Users do not need to log in.
Users are able to submit existing photos to a single flickr account acting as a database.
Users are able to take photos instantly and upload onto the flickr account.
Users are able to self define the emotion description on the photo.
The photos uploaded by the users are geotagged by the users themselves.
The system is able to analyse the photos on the flickr database and create a geoaffective map indicating emotions on different locations.

Getting started

I borrowed a mac book from my friend and starting the coding part.

The first step is paying USD$99 for the iPhone developer.
The second step is to download and setup the Xcode 4.0.1 and iOS SDK 4.3.
However I encountered some issues where my friend's mac book wasn't mac OSX 10.6, and I had to get his permission to upgrade his OS.
The environment has been set up and ready to code.
I am now going through some tutorials on making iphone apps. As well as learning Objective-C.