博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
android intent filter浏览器应用的设置,如何使用choose-box选择应用
阅读量:6861 次
发布时间:2019-06-26

本文共 1022 字,大约阅读时间需要 3 分钟。

//使用chooserIntent private void startImplicitActivation() {                Log.i(TAG, "Entered startImplicitActivation()");                // TODO - Create a base intent for viewing a URL        // (HINT:  second parameter uses Uri.parse())        Uri myUri = Uri.parse(URL);        Intent baseIntent = new Intent(Intent.ACTION_VIEW, myUri);        // TODO - Create a chooser intent, for choosing which Activity        // will carry out the baseIntent        // (HINT: Use the Intent class' createChooser() method)        Intent chooserIntent = Intent.createChooser(baseIntent, "Display this url via ..");                Log.i(TAG,"Chooser Intent Action:" + chooserIntent.getAction());                        // TODO - Start the chooser Activity, using the chooser intent        startActivity(chooserIntent);            }

设置Intent-filter

1             
5
6
7
8
9

 

转载于:https://www.cnblogs.com/hitnoah/p/4670553.html

你可能感兴趣的文章
在另一个线程中无法用((CMainFrame *)AfxGetMainWnd())
查看>>
Ignatius and the Princess IV
查看>>
BC#50 1003 The mook jong
查看>>
DEDECMS中,自增长标签
查看>>
JS学习之动态加载script和style样式
查看>>
python快速入门——进入数据挖掘你该有的基础知识
查看>>
42 windows_42_Thread_WaitableTimer 线程 - 等候线程
查看>>
通过xml将传入的字符串转成表格列值
查看>>
优秀安卓开发周刊推荐——My favorite
查看>>
关于centos6上用yum安装mysql后,出现的ERROR 2002 (HY000)的解决办法
查看>>
当在浏览器中输入一个url后回车,后台发生了什么?比如输入url后,你看到了百度的首页,那么这一切是如何发生的呢?...
查看>>
人事管理系统——数据库操作类
查看>>
Bootstrap
查看>>
uva 1339
查看>>
solr之环境配置一
查看>>
wordpress 系列之 header 导航
查看>>
学习中的问题
查看>>
【十大经典数据挖掘算法】SVM
查看>>
oracle 游标
查看>>
Some lines about EF Code First migration.
查看>>