ice-cube-1 / bag-packer-gcse

CS group project - app that helps people remember what to bring with them every day
0 stars 0 forks source link

get location #8

Closed ice-cube-1 closed 12 months ago

ice-cube-1 commented 12 months ago

Lots of different ways to get location, with only deprecated official tutorials and very confusing documentation

ice-cube-1 commented 12 months ago

Followed official codelab, conflicting gradle dependencies

ice-cube-1 commented 12 months ago
ice-cube-1 commented 12 months ago

Needs to do this repeatedly

ice-cube-1 commented 12 months ago

Implemented a saved lat long in preferences plus a "set home button"

Should probably fix that however

ice-cube-1 commented 12 months ago

to get current location working first need a location request, which I've implemented the docs code is completely incorrect in terms of how to initialize that though

ice-cube-1 commented 12 months ago

written function to get location updates and code to get location result issue is the callback hasn't been initialized?

ice-cube-1 commented 12 months ago

Fixed by switching order of function calls so the stuff in oncreate is before startlocationupdates is initialized Tested that - it works and updates far faster