Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 478
LewisBenge Avatar asked Nov 20 '13 04:11

LewisBenge


1 Answers

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);
like image 162
Jul Avatar answered Oct 31 '22 00:10

Jul