Android - 選擇Native App 分享

摘要:Android - 選擇Native App 分享


        Intent sendIntent = new Intent();
        sendIntent.setAction(Intent.ACTION_SEND);
        sendIntent.putExtra(Intent.EXTRA_TEXT, "分享Text");
        sendIntent.putExtra(Intent.EXTRA_SUBJECT, "分享Subject");
        sendIntent.putExtra(Intent.EXTRA_TITLE, "分享Title");
        sendIntent.setType("text/plain");
        startActivity(Intent.createChooser(sendIntent, "分享"));