android调用自带分享功能

android自带分享功能

                Uri uri = Uri.fromFile(photoFiles[position]);
                Intent intent = new Intent(Intent.ACTION_SEND);
                intent.putExtra(Intent.EXTRA_STREAM, uri);
                intent.setType("image/jpeg");
                startActivity(Intent.createChooser(intent, "分享"));

猜你喜欢

转载自blog.csdn.net/u012539700/article/details/79945852