此代码显示默认共享对话框
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/html");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Message"));
startActivity(Intent.createChooser(sharingIntent,"Share using"));
Run Code Online (Sandbox Code Playgroud)

问题:我没有在默认系统对话框中显示应用程序列表,而是希望获取应用程序列表并在我的自定义列表中显示它们.