But you will get an initial "update" with the current location no matter what
How it get currentlocation without changes.Can you show with example ?
When i run belo codes it alway goes to else part ,without any location changes.Can you tell me the way to go inside in if part without location changes.
just register for location updates and you will receive at least one, even if you never move.
1)what is the reason for this ?
2)I have buitin Google Map application in my phone.But it never gives me such a error.It always shoe my location.How they built it ?
3)If this happen there is no way to get rid of it.That means we unable to run my application.Isn't there anay solution ?
Of course there's a way to solve this. Why do you think there isn't? Why do you not want to check for null before using an object reference?
So how to store last visited longitudes & latitudes.
And then the flying monkeys attacked. My only defense was this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!https://www.kickstarter.com/projects/paulwheaton/low-tech