I need to get the speed and heading from the gps. However the only number i have from location.getSpeed() is 0 or sometimes not available. my code:
location.getSpeed()
Hey I too was suffering from the same but now I have got it solved ! Just multiply the value by 18/5 , it gives almost the accurate value.
speed=location.getSpeed()*18/5
Also specify the interval as 1000*2 and fastest interval as 1000*1 for more accuracy
interval
1000*2
fastest interval
1000*1