In my previous post, I had a short description on an idea of how to create an alarm application based on phone’s and destination GPS position rather than time.
My next piece of code was to calculate the distance between my current location and the destination location. After I put my daughter to bed tonight, I powered up my laptop and googled for 30 minutes and came accross a great post by Dragos Manolescu using the Haversine formula. I haven’t tested this method properly, but it seems to fit into a first version of the application.
My next step will be to create an user Interface for the Application to make the users able to store their target destination GPS positions efficiently.
Source code: ContinuousLocation.rar
I used the example found in previous post for this test.