The GeoCam Project helps people better understand and respond to disasters. GeoCam consists of a GPS-enabled camera (or cell phone) and a web app for sharing geotagged photos and other geospatial data.
GeoCam Memo For Android is the android component of a scribing and note-taking application intended for use by search team members as they canvas the scene of a disaster. Notes can be recorded using text or audio and various forms of attachments (including but not limited to images) can be attached for transmission to a central server. All messages can be geotagged and categorized before saving to provide proper context when analyzing them via a web interface at a later time.
We used eclipse to do development of both the GeoCam Memo application and its associated Robolectric test project. As such, this README will provide directions on how to import and set up the projects in your eclipse instance.
Once all dependencies have been installed, clone the GeoCamMemoForAndroid repository to the path of your choice
git clone firstname.lastname@example.org:cheeseinvert/geocamMemoForAndroid.git
Launch your Eclipse instance and from the File menu, select Import...
- Select General -> Existing Projects into Workspace; Next >
- In the Select root directory: field, provide the location to which you cloned the repository
- In the Projects field, put a check box into both the GeoCamMemoForAndroid and GeoCamMemoForAndroidTest fields. You may need to click the Refresh button if the projects are not visible. Choose whether you'd like to copy the contents into your workspace and click Finish
From eclipse, select Run > Run As... > Android Application and select your target. For more information on running / emulating android applications from eclipse, see the official Android documentation: http://developer.android.com/guide/developing/building/building-eclipse.html
The GeoCamMemoForAndroid project uses Robolectric in order to remove reliance on the emulator. Setting this up requires the following steps:
- Right click the GeocamMemoForAndroidTest project from the package or file explorer and select Run As > Run Configurations ...
- If a GeocamMemoForAndroidTest in the Junit section, select it. If no such entry exists, double click on the JUnit section to create one.
- On the Test tab, set the Test runner: field to JUnit 4.
- On the Arguments tab, choose the Other radio button in the Working Directory section. Click the Workspace... button.
- Click the GeocamMemoForAndroid project then click OK
- Click Run to launch the test suite. If prompted to select a test runner, select the Eclipse JUnit test runner.
Future runs can be initiated by right clicking on the project and selecting Run As > GeocamMemoForAndroidTest among other methods. See eclipse documentation for additional shortcuts and methods of initiating junit tests.