Open url from gdk map or call browser

I am trying to select the url from the map that the browser will open. Is there any way to set or call this?

The map uri API for my exam is for rendering images. https://developers.google.com/glass/develop/gdk/reference/com/google/android/glass/app/Card#getImage(int)

+6
source share
1 answer

You can open the URL in the embedded browser by running the action with the intent ACTION_VIEW . For instance:

 String url = "http://www.whatever.com"; Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(url)); startActivity(intent); 
+6
source

All Articles