1
我在我的Android活动文本,我想给用户选择对社交应用例如WhatsApp,线,Facebook,微博等的份额意图创建自定义选择器通过包名
但我想分享创建自定义选择器,以便它不会在选择器中显示意外的应用程序。
我知道这个片段
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("text/plain");
startActivity(Intent.createChooser(shareIntent, "Share via"));
我怎样才能让这个在选配它会只显示我可以通过自己的包名指定的应用程序。
感谢
看来,这是不可能的: http://stackoverflow.com/questions/5734678/custom-filtering-of-intent-chooser-based-on-installed-android-package-name – 2015-03-08 21:14:56