Location Strategy

If an event occurs (Moodreading, SMS etc) when no Location has been saved (last known location is too old and no current gps coverage), we need a strategy for supplying these events with a suiting location when available.

Solution so far

1. Save events without Coordinates for later retrieval.
2. When Location is available, the database is checked for events without location.
3. If events are found, the location is added to these.
4. LocationEvents? and MoodReadingEvents? are then sent to server right away, all updates are persisted in the database.

Possible extra functionality

- When a trip is started, the current location is obtained. If not possible, the user is asked whether the last known location is precise enough.

- Adding Cell location options: Get location by nearest GSM Antenna. Must use a webservice for retrieval of coordinates from CellId?, see below links
 http://mobiforge.com/developing/story/adding-location-a-non-gps-phone-introducing-cellid - How to use OpenCellId?.org
 http://www.opencellid.org - Api Key to use is: 37f8451b9fdd3bff1c64981e74e309c4