0

I am really new at this Android stuff and currently trying to create an apk to control the HVAC (Heating, ventilation, and air conditioning) of a car with Android Automotive, In some sources from the internet it seems like you need to import the android.car.hardware.hvac.CarHvacManager library but I am unable to do it because I don't know what to add to my build.gradle file to be able to import the required library.

I tried to find how to import the package online but failed miserably. Tried to add some implementations to my build.gradle file but it didn't really help.

I couldn't find it online unfortunately. I don't even know if it is possible to get and set HVAC values from a 3rd party application like mine. My emulator has a system application called Kitchen Sink and it is able to get and set the HVAC values. But I was unable to build it with Android Studio. Afaik it is built while the image of the emulator was being built.

Maybe I am able to do the stuff I want to do with building an application while building the system image but that takes a lot of time and it will be better to just create an apk package for development purposes.

Code for Kitchen Sink Android Auto: https://android.googlesource.com/platform/packages/services/Car/+/master/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/KitchenSinkActivity.java

In conclusion, what is the correct way to get and set HVAC values in Android Automotive? Do I have to import android.car.hardware.hvac.CarHvacManager library? If so how do I import it, what should I add to my build.gradle file to import it? If not what should I use, is there a link on how to use it?

0 Answers0