for my application i want to calculate my car/bike speed using iphone who can i do that , and it should run continuously run in background ....
please help me
for my application i want to calculate my car/bike speed using iphone who can i do that , and it should run continuously run in background ....
please help me
the only way i can think of is thru GPS. the accelerometer is out. but im not sure if enough information is provided thru "GPS API".
Look at the performSelectorInBackground:<#(SEL)aSelector#> withObject:<#(id)arg#>
-function.
Then you need to calculate the speed. I suggest you use Google a bit, because that's High School math.
CLLocation includes a speed property that will give you the current speed of the device. (Note the comment about the accuracy at that link.)
To get the user's current location, follow the steps in the Location Awareness Programming Guide, under "Getting the User's Current Location".
Finally, to enable location updates in the background, see Receiving Location Events in the Background in the iOS Application Programming Guide.