Android調用系統本身的分享功能

Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_SUBJECT,"分享");
shareIntent.putExtra(Intent.EXTRA_TEXT,"快快下載天農助手,天農人自己的助手");
startActivity(Intent.createChooser(shareIntent,"分享到"));
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章