Nivedha S
Nivedha S

Reputation: 207

Tracking the location in android

I got the current location latitude and longitude while giving on in a switch button in android and displaying the location in google map. But I need the latitude and longitude changes automatically wherever the device moves and the location on the map should change with respect to the position. How is it possible? Can anyone give me a way?

Upvotes: 0

Views: 107

Answers (1)

0xAffe
0xAffe

Reputation: 1206

You could have a look at GoogleApiClient. You can use requestLocationUpdates(...) to get the users position in a given intervall.
You can find more Info here

But honestly you could have find the answer on your own if you googled a bit.

Upvotes: 0

Related Questions