I have to open a URL on Click of OK Button in a view. Can someone tell how to do this?
OK
You can use the below method, which will take your target URL as the only input (Don't forget http://)
void GoToURL(String url){ Uri uri = Uri.parse(url); Intent intent= new Intent(Intent.ACTION_VIEW,uri); startActivity(intent); }