jimburton / BigArrow

MIT License
1 stars 10 forks source link

Handle null pointer exception for location in MyMapActivity when GPS is disabled #10

Closed AlmasB closed 11 years ago

jimburton commented 11 years ago

Good call :-)

jimburton commented 11 years ago

I think in this case we should display a dialog that explains the problem -- app won't work without location info -- and allows the user to jump straight to the GPS settings -- i.e. launch an intent that opens the settings activity. See , for example, http://www.helloandroid.com/tutorials/calling-system-settings-android-app-gps-example .

AlmasB commented 11 years ago

Yes I was thinking of that as well, no point in doing a search w/o the location

AlmasB commented 11 years ago

Fixed that + made several changes to how map handles its resume state, will be working on search optimisation