I have to open a URL on Click of OK
Button in a view. Can someone tell how to do this?
On Button click event write this: Uri uri = Uri. parse("http://www.google.com"); // missing 'http://' will cause crashed Intent intent = new Intent(Intent. ACTION_VIEW, uri); startActivity(intent);
On Button
click event write this:
Uri uri = Uri.parse("http://www.google.com"); // missing 'http://' will cause crashed Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent);
that open the your URL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With