+ 1

Android studio/java/How to make a link to google using button

Title👆

22nd Sep 2019, 1:57 PM
KfirWe
KfirWe - avatar
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
23rd Sep 2019, 5:08 PM
Chirag Kumar
Chirag Kumar - avatar
0
Chirag Kumar Thank you for answering. You didn't use <button/>
23rd Sep 2019, 5:51 PM
KfirWe
KfirWe - avatar