guys i am able to get the current location longitude and Latitude using the below code.
I have two buttons Start walking and Stop Walking.
Onclick of
First of all. This is more of a ask a question about a problem and then you will receive an answer. People on this board will not do you work for you.
Now to a way to achieve what you want.
You need to use a service in order to keep track of the user and the locations. The easy way would be to incorporate the mytracks service which is available as a addon to your application or use code from mytracks in order to create your own tracking service. http://code.google.com/p/mytracks/
You could check out: http://code.google.com/p/mytracks/w/list