views:

172

answers:

3

Hi All,

could you please give me some information For how to develop an application/Service for iPhone/Smart phone to restrict Texting in device if it is in Motion of 10MPH speed.

Thanks in Advance.

Bhramar

+2  A: 

From my understanding, without "special" apple support, an iPhone application is only running when it is the foreground -- and if your application is running then it might as well be an animated lighter and the speed of movement doesn't matter (unless, perhaps the flame should burn higher or something).

At least some months ago, this was the summation of the limitation on an iPhone application. If I recall correctly, a "lo jack" program had special support at the time.

pst
+1  A: 

If I understand you right, your intent is to restrict use while in a moving vehicle.

This would be tantamount to implementing an inertial navigation system on a platform with accelerometer support but no gyroscope to provide rotation sensing; which is pretty much a non-starter.

Steve Gilham
Accelerometer data isn't needed. GPS should be sufficient: just get position periodically, and calculate speed from that.
Kristopher Johnson
An accelerometer wouldn't be appropriate here because accelerometers only detect changes in speed. An iPhone traveling at 10MPH is indistinguishable from an iPhone traveling at any other constant speed.
Matt
+1  A: 

Use the GPS api to locate your iPhone at certain intervals, and use the location difference and the time sampling interval to get an estimate of your speed. When your speed exceeds 10MPh, you could restrict texting within your app, doing it all across the device is somewhat close to impossible.

luvieere