android-auto

Android Auto - Voice - Cannot perform “Play [x] on [y]”

江枫思渺然 提交于 2021-02-18 22:41:14
问题 I'm having trouble with the Play [song] on [app] command; specifically the "app" is not being recognised by Android Auto. I get an audio speech message back: "Not sure how to help with play song on app" So the speech recognition is working perfectly (as song and app are as I spoke), however either the matching to the app isn't working or it is not obvious to Auto that my app can handle this. In the simulator, search works from the Search menu option so I'm assuming my intent filters are

How to utilize Android Car API inside an app

一曲冷凌霜 提交于 2020-12-23 02:21:02
问题 I want to test and (if possible) utilize Android Car API functionalities inside my Android app. Specifically, I need to be able to import classes under android.car.* package which can be seen here: https://developer.android.com/reference/android/car/packages.html I also found the repo on Google Git: https://android.googlesource.com/platform/packages/services/Car/ How should I add this library as a dependency in my app? 回答1: There's no prebuilt binary for android.car , but you can build it

Build Custom App for Android Auto

為{幸葍}努か 提交于 2020-02-02 11:39:28
问题 I am searching a method to build custom app for android Auto (Which is not a media app nor messaging app) Exactly like RoboCharge Can someone give some directions for building such app. N.B I have seen this question, but my app will be very simple and will not distract the driver. 回答1: Google doesn't allow to create custom apps to 3rd parties, yet. You have to contact them and they will give you a new SDK 来源: https://stackoverflow.com/questions/42017306/build-custom-app-for-android-auto

Android Auto custom apps - Official

て烟熏妆下的殇ゞ 提交于 2019-12-24 08:13:01
问题 I want to create a Custom Android auto app without doing driver distraction. I went through a lot of blogs and sites and I saw that there used to be custom apps that were blocked since the version 3.0. The developers of those custom apps were using an unofficial Android Auto SDK (https://github.com/martoreto/aauto-sdk) which has been removed. Is there a way to build a custom Android auto app which is completely legal? Is there any open source SDK-for-auto that is still available? (Note:

How to detect whether the phone connected to android auto

情到浓时终转凉″ 提交于 2019-12-22 10:59:29
问题 I'm developing an audio player application, and I need to determine when the user's device is connected to Android Auto. The application features an alarm, and I want to make sure it doesn't go off while the user is driving. To determine whether my music-service ( MediaBrowserService ) works, I can use some flags in onCreate and onDestroy, or register reciver for "com.google.android.gms.car.media.STATUS" action - but it's a bad idea because alarm clock can trigger in any time. And not only

How to set EXTRA_PAGE and EXTRA_PAGE_SIZE in a MediaBrowserServiceCompat by getting reference to the Android Auto MediaBrowser?

半腔热情 提交于 2019-12-21 03:50:45
问题 I have an Android Auto app. I would like to take advantage of pagination for browsing within the app. It seems that you can set EXTRA_PAGE and EXTRA_PAGE_SIZE by getting a reference to the MediaBrowserCompat and passing those constants in .subscribe(). However, I can't figure out how to get a reference to the MediaBrowserCompat that Android Auto Audio uses in order to call .subscribe(). This seems way too complicated for something that should be simple, am I just overthinking things? 回答1: How

Can Android Auto apps be tested on actual devices?

和自甴很熟 提交于 2019-12-13 11:43:51
问题 We are adding Android Auto and iOS CarPlay support to the existing Android/iOS versions of an app. We are able to successfully test the Auto application using the Android Media Browser simulator as directed by the Android developer documentation. We also have a stereo head unit that supports both Auto and CarPlay. We are able to use the CarPlay app successfully on the head unit, and we are able to use published Auto apps on the head unit. However, we can't see our development app on the

How to customize hello message for media app in android auto?

丶灬走出姿态 提交于 2019-12-13 10:00:48
问题 I'm currently developing one Android auto media app. How can I do the same as Spotify when users not login, to give a message "Please login to use spotify". I'm not gonna do a login judgement, I just want to change the default hello message shown on the dashboard. By default, the media app always show "To play something, open the menu...." How can I change it? Help! 回答1: You can use the setErrorMessage() in the PlaybackStateCompat class to accomplish this. When the PlaybackStateCompat is

Can I make any apps for Android Auto?

自古美人都是妖i 提交于 2019-12-13 02:25:13
问题 I'm new with Android Auto and I have a queation. I have an app that the user only have to select items and pay. Can brings my app to Android Auto? Because I was searching a lot and I only find examples for media and messages apps. Studing the examples in the SDK of the media and messages, they not provide a layout for the Android Auto app. 回答1: Android Auto as of now supports only Media and Messaging Apps integration. 回答2: It can be done, but currently the custom app SDK is private - you have

Notification not showing up using Android Auto

一世执手 提交于 2019-12-12 04:17:21
问题 I followed the tutorial on Udacity and the developer site for Android auto. I am using a DVU for testing. The notifications don't show up on the DHU but appears on the phone here is my code: Using GcmListenerService: final PendingIntent contentIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT); final PendingIntent contentIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT); Intent