Friends i have made a location based application.
i have implemented all the code and when my location is changed it calls onLocationChanged method of LocationListener Interface.
I have also used onUpdateLocation() method to get location updates and now i want to pass the lat and long to the activity. How can i do that ??
UPDATED
I know to use Intent . But where should i call the Intent?
I can not call it in onLocationChanged Mthod/
Please Guide
Another solution is to create broadcast receiver inside of the activity. The LocationListener broadcasts a message each time a location is updated. Inside of this message you can put lat and lon values.
Using this way you can update the values dynamically.