我想以与 Mirror API Get Directions 菜单类似的方法结合 Glass 上的路线功能。有没有办法通过 GDK 应用程序中的 URI 启动路线?
最佳答案
使用以下意图前往法国圣马洛世界上最美丽的城市:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("google.navigation:q=48.649469,-2.02579"));
startActivity(intent);
关于google-glass - 如何从 GDK 启动路线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20087337/