Questions tagged [android-auto]
A system and associated APIs for enabling display of Android apps on vehicle head units.
312
questions
0
votes
0
answers
6
views
How to catch event from the wheel button on Android HeadUnit
I have a case that need to handle the event of wheel button (on the left side of screen). But i am not sure which truly events i can get from where and how to handle because i test some apps, when i ...
0
votes
0
answers
12
views
When to allow MediaSessionCompat.onPlay, and when to disallow at start for Android Auto?
I have an Android media app for playing music. I register a service inside AndroidManifest.xml. When my app is started and my service is sent onCreate() I create a MediaSessionCompat and register a ...
0
votes
1
answer
16
views
How to detect if Android Auto is starting, so I can set the initial PlaybackState?
According to the Android app quality for cars guideline MA-1:
Media apps must not autoplay on startup or without user initiated action to select the app or app media..
The guidelines suggest reading ...
1
vote
1
answer
37
views
Support existing app for Android Auto and android wear
I have a android code base which contain project for Android TV and Android mobile. It play basically radio, it also support play on near. Now the requirement is that this app should run on Android ...
0
votes
0
answers
21
views
Not able to get the parentId of the first two browsable media items in Android Auto
I'm working on Android Auto support for my audio app. I'm trying to get the parentId from onLoadChildren() for the browsable media item that is clicked. When Android Auto starts, onLoadChildren() has ...
1
vote
0
answers
53
views
Android Auto getting data about car
I'm trying to display all possible information about vehicle when android auto is connected to my android app.
Unfortunately I get nulls everywhere.
I'm using Desktop Head Unit emulator and actual ...
0
votes
0
answers
34
views
Android auto not working, file sharing in hotspot mode
For a long time I observed the problem of transferring data directly between devices without a router and I cannot understand the reasons.
Example 1: you need to transfer a large file via Wifi from ...
2
votes
0
answers
25
views
How to attach the debugger to Android Auto launched with the emulator?
How to attach the debugger to Android Auto launched with the emulator? I need to use breakpoints.
0
votes
0
answers
18
views
How to navigate to one module to another in Automotive, One is java module other is kotlin module
here i need to navigate(intent) Java module to kotlin module complete different functionality with two services i used `
<service
android:name=".common.PlacesCarAppService"
...
1
vote
1
answer
36
views
How can I trigger a library update in Browsing view for Android Auto?
I have my media playback app working pretty well, the only issue from my testing, there is an edge case where media can be added on the phone, but it's not reflected in the browsing view in Android ...
1
vote
1
answer
43
views
Is there a way that apps can get notified when Android Auto is connected?
Is it possible to get notified (e.g. through a broadcast receiver) when the phone gets connected to Android Auto? We know that it is possible through the CarConnection API however it requires us to ...
1
vote
1
answer
45
views
How to read handbrake and PropertyIds from Android Auto?
I have experience with Android automotive and i was able to receive PropertyIds like handbrake, rpm and other stuff perfectly.
Now i want to do the same with Android Auto only, i know it's possible ...
0
votes
1
answer
59
views
How to detect if Android Head Unit is connected to Android Auto
I am making a media app for Android Head Unit that should check the connection if the car is connected to an Android Auto. Is there a way for my app to detect if it is is connected to Android Auto?
Is ...
1
vote
1
answer
94
views
How to draw content to an AndroidAuto Surface
I am developing a simple Kotlin app for AndroidAuto, it is a navigation app without routes that uses a custom georeferenced image as map.
Im already familiar with Screens and running the service on ...
0
votes
1
answer
98
views
How to add Android Auto support for an already existing MAUI application With media palyer
We are intergating some media player functionalities for Android Auto/Cars support with MAUI mobile application.
I am able to play some sample media with .MAUI for Android platform, But when I am ...
1
vote
1
answer
33
views
What is a half-list template in Car app for Android?
What is a half-list template in Car app for Android? The description here says that the addAction cannot be used on half-list template. Could someone help me in this?
0
votes
1
answer
67
views
How to add an action to a Row in Android for Cars Android Auto?
I wanted to show a list in the Car app Android for Android Auto. The list should contain items with two buttons for separate actions.
I tried adding the addAction(), but it doesn't seem to be ...
0
votes
0
answers
123
views
androidx.car.app.HostException: Remote getTemplate onSuccess call failed
Sometimes I see error if my app run in Android Auto emulator.
2023-06-23 08:44:24.990 12425-12425 AndroidRuntime com.capsule E FATAL EXCEPTION: main
...
0
votes
0
answers
38
views
How to programmatically navigate in Android MediaBrowserService OnLoadChildren method
I have an audio app that runs on Android Auto that I would like to make more user-friendly for that specific use-case. Specifically, there are SETTINGS that the user should be able to modify through ...
0
votes
0
answers
56
views
Incorporating a Pre-Built App in an Android Automotive System Image
I'm trying to make an Android Automotive system image and want to include a native pre-built 3rd-party app ("foo.apk"). Is it possible to 'install' foo.apk in an AAOS image as a system app? ...
1
vote
1
answer
103
views
IllegalStateException:Template is in a loading state but lists are added, or vice versa
I want to use EventBus to set new state and rerender Android Auto Screen.
package com.capsule
import androidx.car.app.CarContext
import androidx.car.app.Screen
import androidx.car.app.model.*
import ...
1
vote
1
answer
120
views
Can we test Android Auto purely in emulators (2023)?
This is the same as this question from 2016 (where the answer was basically: 'No'), but Android Auto since 2019 works very differently than it did 2016, so i think it is ok to ask again:
Android Auto ...
1
vote
1
answer
45
views
Android versions for Android Auto comaptible apps
Help me understand:
'Android for Cars' subsumes 'Android Automotive OS' and 'Android Auto' ...
in the Automotive case only one Android OS (the one on the car-display) is used, so only that Android ...
2
votes
1
answer
269
views
Can't use Android Auto 'android.car' library - throws RuntimeException: Stub
I'm trying to read the Outside Temperature Sensor from cars running Android Auto and Android Automotive.
In order to read the SENSOR_TYPE_ENV_OUTSIDE_TEMPERATURE using the CarPropertyManager I need to ...
1
vote
0
answers
21
views
How to detect locale configuration changes in Android Auto?
Android Auto is able to detect changes in the uiMode when triggering the night / day commands in the simulator. This results in the system calling onCarConfigurationChanged.
Is it possible to do ...
1
vote
1
answer
162
views
How do I implement a template for Android Auto that enables search by letter while driving?
I want to make an app for Android Auto and the user should be able to search through a long list of items by name during the drive. Obviously, the keyboard is blocked while driving and I am aware of ...
1
vote
1
answer
143
views
How do I get my (f-droid or locally built) Android app to show up in the Android Auto launcher?
I am attempting to add Android Auto support to this open source audio recorder app. According to this page, all I need to do is add:
<meta-data
android:name="com.google.android.gms.car....
0
votes
1
answer
93
views
How to change font size in .settitle in row builder (android auto)
I need some help with Android Auto code on a simple question regarding font size. I can make font size changes in most Android/Java code for smartphone apps. However, for Android Auto there are some ...
0
votes
1
answer
27
views
how to show indicator for current playing queueitem in mediabrowserservice (android auto) android?
enter image description here
i want to show indicator icon like above image
I will try lots of but i havent idea. how to do it like this
0
votes
0
answers
43
views
If android auto is playing and I launch the app for the first time it gets stuck on the startup screen
if I launch the app and then android auto everything works correctly, even if then I close and reopen the app, it is launched. If, on the other hand, I open the app on android auto first and then open ...
0
votes
1
answer
39
views
If launch first android auto this don’t show tracks
Hello do u know why if I connect the smartphone to the car radio, if I don't open the app before and open directly the android auto, this show me an empty list and then when I open the app stuck on ...
0
votes
1
answer
52
views
Open Android Auto car app from the mobile app
How to open the Android Auto car app from the mobile app?
I want to open the car app in the Desktop Head Unit when a button on the mobile app Activity is clicked.
Tried starting the CarAppService ...
0
votes
0
answers
108
views
React Native Android Auto ANR API: GET_APP_VERSION Error
Iam trying to implement the library react-native-android-auto.
Since its no longer maintained I have forked and done some modifications on the repo my self.
Got everything to compile and run and the ...
1
vote
0
answers
88
views
How to input user data with an EditText in Android Auto? My App needs 3 EditText to collect 3 data from users, realize calculation and give a response
I know that it is possible to have fields (I just don't know if they are EditText) to collect user data in Android Auto as in CarStream, CarTube, Fermata Auto, among others. However these developers ...
0
votes
0
answers
42
views
How to integrate google map in my android auto app?
I have android app with map, I am working on to add support of android auto to my existing android app.
I want integrate google map in android auto but Android car app library does not provide us the ...
1
vote
0
answers
37
views
Xamarin Android media app showing 2 instances in Android Auto console
I am working on a Xamarin Android media app and trying to add support for Android Auto. I have followed the Android Auto guidelines and best practices and have properly configured my app for Android ...
0
votes
1
answer
80
views
Getting an android app with geofence to properly send a notification to Android Auto
I have a generally well working application built in kotlin which has a geofence listener service which sends notifications to both the mobile device and the Android Auto unit when a geofence is ...
0
votes
0
answers
56
views
dyld: Library not loaded: @rpath/libusb-1.0.so
I upgrade my Android Studio, Gradle and compileSdkVersion.
Suddenly, I can not open Android Auto Desktop Head Unit Emulator.
I don't understand the error message about the path "@rpath/libusb-1....
0
votes
0
answers
35
views
Android Auto capture the car external audio stream
I am developing an Android App using Android Auto (not AAOS).
The application needs to have access to the audio streams natively produced by the car (e.g. the radio audio stream), therefore NOT ...
2
votes
0
answers
157
views
Use my Delphi app with Android Auto or iOS CarPlay?
I have an FMX app written in Delphi 11 Alexandria.
I've been searching for a while to see if it is possible with FireMonkey to use my app in a car (Android Auto or iOS CarPlay), but I didn't find any ...
0
votes
0
answers
176
views
Audio playback on Android Auto not working
I developed an Android app that plays audio, and I need that sound to be able to be played in Android Auto (AA).
At the moment, my app only plays the sound through the Android device.
Testing with the ...
0
votes
2
answers
373
views
Android Auto navigation app, show an interactive interface when selecting a location
Context
I am trying to create an Android Auto navigation app using HERE SDK. I want to create an interface that allows the user to interact with it when they select a location, such as a parking lot ...
1
vote
1
answer
76
views
Android Auto boot/connected receiver
I'm currently developing app for Android Auto (Android for cars). I need to know when user connected phone to car. Is there any action like Intent.ACTION_POWER_CONNECTED, which I can observe in my ...
3
votes
1
answer
402
views
My android app is working on DHU but not seen on Android auto car screen
I just started to develop apps for cars a month ago and still a lot of black spots in my mind. I have developed an android app for navigation that can be used in Android car mirroring. When I test my ...
0
votes
0
answers
59
views
Android Auto automated testing
Hi does anyone know if there is any tool/framework that can support automated testing over AndroidAuto/Car play? meaning I need to test the behavior of my mobile app on a head unit (device or emulator)...
0
votes
0
answers
54
views
Audio service package does not display artwork In Android Auto
I am making Music app in Flutter. For that, I am using audio service package.
Package displays song artwork for my phone, but It does not display artwork for Android Auto.I am using below snippet for ...
0
votes
0
answers
49
views
Car Object is not ready on some devices Even though App is using Car.CAR_WAIT_TIMEOUT_WAIT_FOREVER for createCar
Car.createCar(
context,
null,
Car.CAR_WAIT_TIMEOUT_WAIT_FOREVER,
) { carObj, carReady ->
if (carReady) {
Log.d("TAG"...
1
vote
1
answer
405
views
Difference of Android Automotive an Google built-in
I recently read that Google calls "Android Automotive OS" now "Google built-in".
On some different articles i read that it's still called AAOS and Google built-in is only used for ...
1
vote
0
answers
115
views
Android Auto media app issue with duplicate apps
We developed a Mobile app with Xamarin forms. Now we want to give support for Android-Auto (Cars).
Made all the necessary configurations to make it work for our media player-related app on Android ...
0
votes
0
answers
337
views
Get Android Auto notification to launch auto app when clicked - Kotlin
I have an Android mobile app with Auto support, and when in Java, the auto app was working fine to launch the auto app when the notification was clicked.
However, since I've migrated everything to ...