Calculate distance and speed when button is pressed
<p>I am trying small runner application using android gps. this is my scenario. could you please help in this or tell me any source code available for this
As you walk, it should show you at what speed you are walking and how much distance you covered. Only one button</p>

<p>START</p>

<p>When you press start its label should change to PAUSE</p>

<p>Hitting pause should pause your measurements. When you press PAUSE, you should should now show 2 buttons STOP and RESTART</p>

<p>If GPS is not turned on, it should ask you to turn on your phones GPS. I can see  your app does recognize it, a slight addition should get what I am looking for.</p>

<p>Its pretty straightforward what I am asking for. Just speed and distance </p>
