我正在一个应用程序中工作,我可以将我的画廊图像分享到 facebook、twitter
我已经搜索了一些链接..每个人都提到了意图服务..但我不知道它将如何在我的应用程序中使用,如果有人帮助我提供完整的代码,我将非常感激
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/jpeg");
share.putExtra(Intent.EXTRA_STREAM,
Uri.parse("file:///sdcard/DCIM/Camera/myPic.jpg"));
startActivity(Intent.createChooser(share, "Share Image"));