Intent intent=new Intent(Intent.ACTION_SEND);
intent.setType("text/plain"); //分享的數據類型
intent.putExtra(Intent.EXTRA_SUBJECT, "subject"); //主題
intent.putExtra(Intent.EXTRA_TEXT, "content"); //內容
startActivity(Intent.createChooser(intent, "title")); //目標應用選擇對話框的標題
作者“liangoogle”