Android(安卓)webview 调用android浏览器
16lz
2021-12-04
方式一:调用android的浏览器
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_BROWSABLE);
intent.setData(Uri.parse(url));
c.startActivity(intent);
方式二:调用android的自带浏览器
Intent intent = new Intent();
intent.setAction("android.intent.action.VIEW");
Uri content_uri_browsers = Uri.parse("http://csdn.net");
intent.setData(content_uri_browsers);
intent.setClassName("com.android.browser","com.android.browser.BrowserActivity");
startActivity(intent);
更多相关文章
- 从android游戏框架看其生命周期!
- 如何使用android中的搜索功能
- Android(安卓)的自定义Spinner组件实现方式
- Android通过串口与PC通信
- android webView与js交互
- Android去掉状态栏和标题栏的两种方式
- Android中使用sqlite笔记
- Android获取在线视频的缩略图方式对比
- Android录音下————AudioRecord源码分析