Intent shareIntent =
new Intent()
;
shareIntent.setAction(Intent.
ACTION_SEND)
;
shareIntent.putExtra(Intent.
EXTRA_TEXT, title+
":\n"+
mStr)
;
shareIntent.setType(
"text/plain")
;
//设置分享列表的标题,并且每次都显示分享列表
startActivity(Intent.
createChooser(shareIntent
, "分享到"))
;
转载请注明原文地址: https://ju.6miu.com/read-8811.html