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
which method best find vehicle status
can use geofence method identify vehicle status
all suggestion welcome
thanks
what mean vehicle status?
if mean speed, can following:
- detect when user in vehicle using activityrecognition detectactivity
- as detect user moving in vehicle, keep track of location , time.
- 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
Post a Comment