What is the intent to launch any website link in Google Chrome

后端 未结 6 504
不思量自难忘°
不思量自难忘° 2020-12-09 13:20

Hi I want to open the website in chrome app from my app webview when user click on particular link. I see this is possible https://developer.chrome.com/multidevice/android/i

6条回答
  •  佛祖请我去吃肉
    2020-12-09 14:01

    Use this:

    String url = "http://www.example.com";
    Intent i = new Intent(Intent.ACTION_VIEW);
    i.setData(Uri.parse(url));
    startActivity(i);
    

    hope this will help..

提交回复
热议问题