dylanvee/Project-BudBurst-Mobile — Issue #104: Location API call needs to be changed
Author: egraham
Created: 2012-02-16 17:50:33+00:00
State: open
Labels: high, Sophie

The returned location from the location API has a timestamp on it. I think our app is checking if it is still valid, e.g. valid if it is within X seconds, and this causes a delay.

Before doing validation, we can just use the cached old location until we get newest location.

If the cached location is lat/lon = 0/0, we need to figure out a solution. One might be having the phone return a default location with the user login and storing it. if this is possible, I can change the API on the server easily..

Below is a link to the location API that we are using.

http://developer.android.com/reference/android/location/LocationManager.html#getLastKnownLocation(java.lang.String)