Search code examples
google-glassgoogle-mirror-apigoogle-gdk

How can I launch Directions from GDK


I'd like to tie into the directions functionality on Glass, in a similar method to the Mirror API Get Directions menu. Is there a way of launching directions via a URI within a GDK application?


Solution

  • Use the following intent to go to Saint-Malo, France the most beautiful city in the world :

    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setData(Uri.parse("google.navigation:q=48.649469,-2.02579"));
    startActivity(intent);