Closed glee23 closed 11 years ago
Locations are not immediately found in android. So that explains why nearby me search does not work. So Location comes at a later time then when the activity is created. requestLocationUpdates() should only be called once. Our app needs to be able to handle getLastKnownLocation() to be null. Because simply the system has not provided a location yet.
Whenever I boot up the user app, the sort by nearby restaurants always fails on the first load. When I click the button though, it works. I tried debugging it, and it's because mLocation is null when it's first loaded, but not when you click the button after. I tried placing super.requestLocationUpdates() before each getLastKnownLocation() call, but that didn't fix it, so I'm not sure how to make sure that mLocation isn't null when the app first tries to sort the restaurants.
Resolution: Unresolved