Intent 调用系统发送工具

Intent intent = new Intent(Intent.ACTION_SEND);

intent.setType("text/plain");

//intent.setType("image/jpg"); intent.putExtra(Intent_EXTRA_STREAM,文件路径);

//intent.setType("audio/mp3");intent.putExtra(Intent_EXTRA_STREAM,文件路径);

intent.putExtra(Intent.EXTRA_TEXT, “要发送的内容”);

startActivity(Intent.createChooser(intent, "请选择分享方式"));

posted @ 2012-09-11 15:47  Lost in code  阅读(158)  评论(0编辑  收藏  举报