locationmanager - Android pragmatically get vehicle status -


in application need find vehicle status, can speed of vehicle using location manager many article told getting speed location manager not accurate, can suggest me

  1. which method best find vehicle status

  2. can use geofence method identify vehicle status

all suggestion welcome

thanks

what mean vehicle status?

if mean speed, can following:

  1. detect when user in vehicle using activityrecognition detectactivity
  2. as detect user moving in vehicle, keep track of location , time.
  3. whenever find new location, calculate distance between last location , new 1 using distanceto(location). calculate time difference. speed @ point distance / time.

you can keep repeating every new location find , have speed of vehicle. can read more android locationstrategies.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -