I'm trying to make my app wait till the current location is found. I've tried few different ways using Threads
and all have failed really. I was using wait()
and notify()
but application just hung and never found the current location.
I amen't using google map api as it is not part of the application. Does anyone have any ideas how to do this or examples.
EDIT : The Thread
I was using did not start till the user pressed a button then within onLocationChanged
other data is processed e.g. adding the new location to ArrayList, Calculate the distance between the current and last Location as well as the Time taken to get to the new location