sachishah/airportstatus — pull request #25 by tensory (2013-09-30 20:13:46+00:00)
Title: Feature/fix initial location

Fixed some slight problems with Unicode line endings in Airport.java.
Switched to an asynchronous location checking strategy, via http://stackoverflow.com/questions/3145089/what-is-the-simplest-and-most-robust-way-to-get-the-users-current-location-in-a?lq=1
Saves last location as a pair of lat/long preferences so that it does not need to be passed as lat/long values through a Bundle to the QueryActivity. Did some refactoring to get that out of QueryActivity and into its own class.
Got rid of the weird little AirportStatusLocation class I wrote to describe locations, and adopted Hadiyah's strategy of creating a named Location instance with only lat/long set.
Added a constructor to Airport to let me use Airport objects to pass indexes and codes around, more conveniently than a HashMap or similar structure.

Note:
In the emulator, it is necessary to send a location by going to the DDMS pane and entering a pair of decimal coordinates, then hitting Send, during the 20-second listening window for the location checking timer.