Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read vehicle sensors in android auto apps?

Is it possible to read vehicle information like speed,distance traveled ,fuel details, in android auto apps?
I've checked https://developer.android.com/training/auto
They are not mentioning anything about it. Do Android auto have any Interface/API to get vehicle related information.

like image 728
Vishnudev K Avatar asked Jun 30 '15 07:06

Vishnudev K


People also ask

How do I get Android Auto to work with car app?

Starting with Car App API level 3, the Car App Library introduces APIs that you can use to access vehicle properties and sensors. To use the APIs with Android Auto, start by adding a dependency on androidx.car.app:app-projected to the build.gradle file for your Android Auto module.

How to monitor car sensor data?

Use CarPropertyManager instead. API for monitoring car sensor data. Listener for car sensor data change. Read sensor at the maximum rate. Read sensor in default normal rate set for each sensors. Set to true when ABS is active. This sensor represents vehicle speed in m/s. Oil level sensor. Outside Environment like temperature.

Can Android Auto be used with Android phone screen?

Screens and apps on Android Auto If you’ve been using the Android Auto app on your phone screen, you’ll need to switch to Google Assistant’s driving mode, a new integrated driving experience. If your car is compatible with Android Auto, you can still connect directly to your car’s display.

What is the Android for cars app library?

The Android for Cars App Library allows you to bring your navigation, parking, and charging apps to the car. It does so by providing a set of templates designed to meet driver distraction standards and taking care of details such as the variety of car screen factors and input modalities.


1 Answers

An OBD interface is a good option - Mojio, Zubie, and Automatic are commercial options, or you could even build your own with OpenXC !

But... it is coming. The 5th tab on the display is currently is a dead end, but if you enable developer mode, you can see placeholder options in the UI, and there IS a library with event listeners that the OS (which is probable Win CE or RIM's QNX, skinned by the OEM - pretty much like the Android hardware ecosystem as a metaphor) can choose to post events to... so, the API is just not public right now, presumably while Android negotiates with the OEMs to get a larger-than-piecemeal buyin...

(see this article for how to enable developer mode and to preview the placeholder information...)

like image 154
jesses.co.tt Avatar answered Oct 08 '22 06:10

jesses.co.tt