Furunål

From mn/ifi/inf5750
Revision as of 15:19, 4 December 2015 by Martikol@uio.no (talk | contribs) (Static HTML-version)

Jump to: navigation, search

Project description - Android coordinate picker

The task description can be found here. They way we understand the project description, the problem we are going to solve is that currently the Tracker module of DHIS2 is only able to capture the coordinates of the current user. However, sometimes there is a need to capture coordinates of locations the user is not currently at, and this is what we are going to do. This is to be done by using a map and clicking on the position with the coordinates the user wishes to capture.

In other words, we are implementing new functionality in the Tracker module.

List of group members

Martin Kolbeinsvik - martikol@ifi.uio.no

Jon-Robert Skårberg - jonrobes@ifi.uio.no

Sebastian Søberg - sebasso@ifi.uio.no

Daniel Bugajski - prezemyb@student.matnat.uio.no

Summary of requirements

Features:

Register location from a point-and-click on a map ind the Tracker module

Architecture:

Google maps API

Android SDK

Time schedule

Wiki pages will be updated continuously and is not mentioned in the week schedule below. Milestones as described on the wiki front page can be found in the section below this.

Week 45: Start project, write Wiki pages and familiarize with project (milestone 1).

Week 46: Familiarize with the DHIS2 system, testing and practicing with the system. Share experiences with each other, and start on the first bare-bone version (milestone two).

Week 47: Continue work with and finish the bare-bone version by November 22th. (This is a minimum, as we hope to have had more progression than this on the 22th.)

Week 48: Starting the work with "translating" our work from static HTML to a proper DHIS2 webapp (milestone three. We intend to fill the requirements by the end of this week, as we do not yet really know how demanding this will be.

Week 49: Continue the work from last week. If we are finished with milestone two by this time, we start finishing the app. If not, we continue with finishing milestone three by the deadline on December 4th.

Week 50: Finishing project and wrapping things up. Final delivery December 11th. Create and practice on presentation.

Task dividing

We work mostely together as a group, sitting in the same room while discussing and working. We all do our share in most parts of the project, while doing the programming itself on one or two computers at a time.

Delivery

Static HTML-version

Static HTML version

The static HTML-version is available on GitHub.

Our project is Android-based and the final delivery will not be in HTML. However, we have made a small HTML-version were it is possible to set and move a `marker` in a Google Map and the latitude and longitude is displayed on top.

DHIS android sdk project

Repository: https://github.com/Kolbeinsvik/dhis2-android-sdk

Implemented features

An inline Google Maps is displayed when the map icon button is pressed. The map's default view is over Africa (latitude and longitude 0) and can be moved, rotated and zoomed by the user.

A marker can be added by the user by touching anywhere on the map. It can also be moved and dragged around by pressing and holding the marker for a second. Any location change on the marker changes the `Latitude` and `Longitude` fields and is automatically saved by the app.

On view of existing patient entry with location data, as well any update to the location fields due to pressing the "I am here" button, places an appropriate marker on the map.

Known issues

An issue with `fragment` and the `LayoutInflator` crashes the app the second time the `CoordinatesRow` is rendered.

View of where the button to open the map is The map view

Milestones

Each group should follow these milestones:

  • Milestone 1: 8th November

Document features and architecture on Wiki

Show understanding of DHIS2 web apps

  • Milestone 2: 22th November

First bare-bone version - static HTML

Uploadable as DHIS2 web app

  • Milestone 3: 4th December
  • Finished, if applicable also with mobile app.
  • Final delivery: 11th December
  • Presentation: mid December