问题标签 [android-auto]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
182 浏览

android - 关于Android汽车应用开发资源文件夹

如果我们的目标应用程序也支持 android auto,我怎样才能让 Auto 布局看起来与手机/平板电脑布局不同?

为了实现这一点,是否可以选择在资源中放置一个单独的 res 文件夹?而且我想知道当apk在移动设备中时,UI将如何呈现在Vehicle的屏幕上。

0 投票
1 回答
260 浏览

android - Android Auto 车载测试

我正在尝试为 Android Auto 部署一个应用程序。我有自己的应用程序和来自 Google 的示例应用程序与测试工具一起使用,但它们不会出现在车上。有没有人能够对此进行测试,还是我们必须先将其提交给商店?

0 投票
1 回答
778 浏览

android - 如何实现类似Android Auto的截屏

我正在实现具有类似于 Android Auto App 功能的应用程序。

基本上,我从 Android Auto App 中了解到的 - 它在手机上创建 UI 并使用 USB 将 UI 传输到 Android Carkit 以显示。如果我的理解有误,请纠正我。

有人可以帮我了解Android Auto如何将其屏幕内容投射到Carkit吗?如何在我的应用程序中实现类似的功能?

0 投票
2 回答
4308 浏览

android - 如何在安卓汽车应用程序中读取车辆传感器?

是否可以在安卓汽车应用程序中读取车辆信息,如速度、行驶距离、燃料详细信息?
我已经检查了https://developer.android.com/training/auto
他们没有提到任何关于它的内容。Android auto 是否有任何接口/API 来获取车辆相关信息。

0 投票
1 回答
751 浏览

android - Wear 应用可以使用 MediaBrowser 在设备上的应用中调用 MediaBrowserService 吗?

我们最近在我们的应用程序中添加了一个 MediaBrowserService,它允许 Android Auto 通过我们在设备上的应用程序发现和播放音频内容。这按预期工作。

默认情况下,Wear 会拾取并显示我们的“正在播放”通知,提供基本的播放/暂停功能,并提供与我们的 MediaBrowserService 明确通信的“浏览”操作。

我正在向我们的主应用程序添加一个实际的 Wear 子应用程序,我想像 Wear OS 一样调用我们自己的 MediaBrowserService。

但是,当我调用 mediaBrowser.connect() 时,ConnectionCallback onConnectionFailed 总是会触发。连接永远不会成功。在主应用程序上进行调试时,我从来没有看到我们的 MediaBrowserService 有调用。

这是相关的代码。是否可以以这种方式使用 MediaBrowser 来复制 Wear 本身的功能?不幸的是,ConnectionCallback 没有提供任何信息来帮助解释连接尝试失败的原因。

更新

当我在我们的应用程序中播放音频并且手表上出现音频通知时,我可以看到我们的 MediaBrowserService 启动并且调用“onGetRoot”的包是

com.google.android.wearable.app

我假设这是 Wear OS 本身,但这似乎是设备上 Android Wear 应用程序的包名称。不知何故,它正在请求数据并将数据中继到手表,也许 MediaBrowser 根本无法从手表上的实际 Wear 应用程序中运行?

我看到很多使用 GoogleApiClient 在手表和手机之间传递数据的示例。我希望重用我们的 MediaBrowserService,因为 Wear 默认使用它。看来这不是一个选项,如果我想从手持应用程序获取 Wear 应用程序请求数据,我必须使用 GoogleApiClient 和 WearableListenerService。

0 投票
1 回答
1247 浏览

android - 安卓查看客户端

我是使用 android 视图客户端的新手,我正在尝试从我的系统运行视图客户端程序,但总是出现如下错误:

在我的情况下,当我尝试将参数分配给“VC”时,我看到 UIAutomator 转储总是被杀死,是否有任何解决方法:

vc = ViewClient(device, serialno)

0 投票
1 回答
174 浏览

android - Problems with Android Auto App Verification

I have noticed that, when I do a staged rollout of an app with Android-Auto support, the app gets re-evaluated every time I change the percentage of users the app is made available to. The evaluation is also tremendously inconsistent, with the app passing about 80% of the time, and failing, with meaningless messages such as "Your app does not perform all functions properly or as expected from a user perspective." If this is not the final, 100% roll out, there is no problem, as the review will likely be different on the next iteration. However, if the rejection happens on the final roll-out, it blocks the app for all users (not just the < 1% that use Android Auto.)

This is largely a rant about Google's flawed evaluation mechanism, but I would like to know if anyone has a way to get the APK evaluated once, so that you can complete the rollout based on a final review, or a way to trigger a new review - changing the config in some trivial way and hitting submit again? Any ways to work through this flawed process would be helpful. Thanks!

0 投票
1 回答
1094 浏览

java - 如何为安卓汽车模拟器发送谷歌地图通知?

我正在为Android Auto. 我想发送这样的地图通知(我还没有实现大视图)下图。

我用下面的代码试了一下。但它未能发送地图导航通知。

有了这个,我在模拟器上收到了一个空通知,状态栏上什么也看不到。单击此通知后,我想在 android auto car 设备上显示导航地图。我该如何解决这个问题?

提前致谢!

0 投票
2 回答
2571 浏览

android - Android Auto - 语音 - 无法执行“在 [y] 上播放 [x]”

我在 [app] 命令上播放 [song] 时遇到问题;特别是Android Auto无法识别“应用程序”。

我收到一条语音语音消息:“不确定如何帮助在应用程序上播放歌曲”

所以语音识别运行良好(正如我所说的歌曲和应用程序一样),但是要么与应用程序的匹配不起作用,要么对 Auto 来说我的应用程序可以处理这个问题并不明显。

在模拟器中,搜索从搜索菜单选项工作,所以我假设我的意图过滤器是正确的。

我的清单有以下内容:

我已尝试将以下内容放入我的服务声明或YouTube DevByte中所示的活动中,但似乎都不起作用:

我希望它在服务中,因为没有与服务相关的活动。我想确定这应该在哪里。

我可能错过了一些东西或误解了一些东西。一个问题可能是应用程序的名称中包含一个数字(例如 1up)。

0 投票
0 回答
208 浏览

android - Android 自动启用应用程序不会将通知推送到车载设备

我为安卓汽车设备制作了一个应用程序。我使用 Android auto 对其进行了测试Messaging Simulator。我使用移动应用程序发送的所有通知都显示在模拟器上。然后我尝试了一个真正的汽车设备。当我使用移动应用程序向真车设备发送通知时,它没有显示任何通知。任何人都可以帮助我吗?问题是什么?

我正在使用Pioneer AVIC-7100NEX车载设备。