+ 1
Android studio/java/How to make a link to google using button
Titleđ
2 RĂ©ponses
0
It's simple just try using this:
try
{
Desktop.getDesktop().browse(new URL("http://www.google.com").toURI());
}
catch (Exception e) {}
And also not forget to import java.net
And if Desktop.desktop cause any crash and unexpected error try referring this:
https://stackoverflow.com/q/10967451/9973584
0
Chirag Kumar
Thank you for answering.
You didn't use <button/>