Skip to content
Yu Zhiqiang edited this page Jun 10, 2014 · 9 revisions

Wiki - Phimpme Android app

Phimpme Android app is a photo-sharing app.

The whole project includes this repo and the Generator. It aims to create a photo sharing app and a generator that can customize it.

MainActivity

This is the main screen of this app. Currently it only contains an action bar with a camera button.

ChooseDialogFragment

After touching the camera button, this dialog will popup. It contains three options listed below.

  • Capture a new photo (CaptureActivity)
  • Choose from library (ChooseFromLibraryActivity)
  • Select from map (MapActivity)

CaptureActivity

This activity uses startActivityForResult() to call the system camera, and gets its result (an Uri) through OnActivityResult(). Then this activity will start the PreviewActivity with Uri as an extra, and finish itself.

ChooseFromLibraryActivity

This activity calls the Gallery provided by Android. Once getting the Uri of selected image, it will pass it to PreviewActivity, and finish itself.

MapActivity

It uses the Google Map API v2 to show a map. It will get information of all photos from the system database. The thumbnails are shown in the map at the location of each photo. When users touch a photo, it goes to the PreviewActivity.

PreviewActivity

Simply show the photo selected. On its action bar there is a edit buttion and a forward button. Edit buttion calls the PhotoManipulationActivity, while the forward button goes to the UploadActivity.

PhotoManipulationActivity

It calls the photo editor inside the Gallery app of Android.

UploadActivity

This is the screen for uploading a photo. Where users can write a description for the photo, turn on the geographical location and modify it. Also this page supports Android Beam (NFC), where users can tap two devices to beam the selected photo from one to another. The receiver is not required to have the phimpme app installed.

GPSManagerActivity

This is the activity used to change the geographical location inside a photo. It shows a map with the location of the photo in the center, marked with "×". Users can move the map to change the location info of the photo.

Clone this wiki locally