如何 运行 chrome 工具而不是浏览器

How to run chrome tools instead of browser

如何在 Chrome 工具 activity 中 运行 链接而不是 Android 中的 Chrome 浏览器应用程序?

我尝试使用 Intent,但没有用。

我解决了

newsAdapter.setOnItemClickListner(new NewsAdapter.onItemClickListner() {
        @Override
        public void onClick(String str) {
            //CUSTOM TABS
            CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
            builder.setToolbarColor(getResources().getColor(R.color.colorPrimary));
            builder.setShowTitle(true);
            builder.setCloseButtonIcon(BitmapFactory.decodeResource(
                    getResources(), R.drawable.ic_arrow_back));
            CustomTabsIntent customTabsIntent = builder.build();
            customTabsIntent.launchUrl(getContext(), Uri.parse(str));
        }
    });