Open jdkoola opened 10 years ago
SO Android already has a Location Class, and that is what will be created/used when we call into Location. As a result the name isn't Location class because then java gets confused about having two Location classes being used in the same class, so our class name was changed to myLocation. This is obviously alterable. I set it up so that two doubles can be passed in and the underlying Location gets those latitiudes and longitudes set.
The advantage of using their premade class has to do with when we must get a current location and calculating distance between locations.
Awesome, good job man. Can you please upload a branch so I can finish testing/integration with your new MyLocation class?
Yes, I can but I'm having trouble adding a class to my branch in my eclipse, because the thing isn't technically a project it doesnt seem to import correctly into my package explorer. Do you have any ideas about this?
Figure it out, on my branch there is a myLocation class now.
Atleast something with latitude and longitude as doubles with getters and setters