DEV Community

Dr Sundaramoorthy Palanisamy
Dr Sundaramoorthy Palanisamy

Posted on

Question: Activity Manager

Hi, I am working on an app to detect automotive mode using the Activity Manager. However, the initial part of the drive is not being detected as automotive mode until the speed reaches around 30 km/h. Similarly, if the speed drops below 30 or 40 km/h while ending the drive, the activity changes incorrectly. How can I resolve this issue and ensure that automotive mode is detected from the start to the end of the drive?

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay