我已经设置了共享图像和标题的共享意图,但它只被定向到谷歌驱动器,我不明白为什么..这是代码:
Intent shareCaptionIntent = new Intent(Intent.ACTION_SEND);
shareCaptionIntent.setType("image/*");
//set photo
Uri examplePhoto = Uri.fromFile(getExternalFilesDir(filepath[position]));
shareCaptionIntent.setData(examplePhoto);
shareCaptionIntent.putExtra(Intent.EXTRA_STREAM, examplePhoto);
//set caption
shareCaptionIntent.putExtra(Intent.EXTRA_TITLE, modelname);
startActivity(Intent.createChooser(shareCaptionIntent,"share using:"));