Bhumeshwer katre
Bhumeshwer katre

Reputation: 4671

How to get iPhone Device Activity

I want to get whether iPhone device is stationary, walking, In car etc.

Can I get it through Core Motion Framework?

CMAcceleration only gives x, y and z values.

How to use this value to calcluate iPhone Device Activity

Upvotes: 0

Views: 362

Answers (1)

Jonathon Reinhart
Jonathon Reinhart

Reputation: 137398

An accelerometer measures acceleration (change in velocity).

Those values are acceleration in the X, Y, and Z directions. If the phone is stationary (or traveling at a constant velocity) then those values will be ~zero.

How can I find the velocity using accelerometers only?

Upvotes: 1

Related Questions