Android分享功能

代码如下: Intent intent=new Intent(Intent.ACTION_SEND); intent.setType(“text/plain”); intent.putExtra(Intent.EXTRA_SUBJECT, “分享”); intent.putExtra(Intent.EXTRA_TEXT,”I would like to share this with you…”); startActivity(Intent.createChooser(intent, getTitle()));

yava /
in categories tagged with