【问题标题】:Android Auto NAVIGATE_INTENT Handling In Here Map shows no result.But works with google mapsAndroid Auto NAVIGATE_INTENT Handling In Here Map 显示没有结果。但适用于谷歌地图
【发布时间】:2023-02-13 13:47:34
【问题描述】:

需要从我的 android 汽车应用程序汽车屏幕导航到具有地理坐标的 Here 地图应用程序。使用谷歌地图和位智,我可以开始导航。但是这里的地图显示没有找到任何结果。

     Intent intent = new Intent(CarContext.ACTION_NAVIGATE)
                .setData(Uri.parse("geo:13.11978,+80.14994"));
            getCarContext().startCarApp(intent);

https://developer.android.com/training/cars/apps/navigation#support-navigation-intents

这是因为没有处理 Navigation Intent。在 android auto 中将导航路由到此处地图的任何其他方法。

【问题讨论】:

    标签: android here-api android-auto


    【解决方案1】:

    尝试这个:

    Intent intent = new Intent(CarContext.ACTION_NAVIGATE)
            .setData(Uri.parse("geo=0,0?q=N Park St,+Secretariat Colony,+Venkatapuram,+Ambattur,+Chennai,+Tamil Nadu 600053,+India"));
    getCarContext().startCarApp(intent);
    

    检查本文档中的格式 2: https://developer.android.com/reference/androidx/car/app/CarContext#startCarApp(android.content.Intent)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-06
      • 2020-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-25
      • 2022-06-20
      相关资源
      最近更新 更多