1
私のアプリケーションを通じて、whatsappでtext + imageを共有しようとしています。 しかし、画像を共有することはできません。テキストは共有されています。画像の領域は空白で表示されます。ここ
は、ここに私のコード画像とテキストをwhatsappで共有する
Uri uri = Uri.fromFile(new File(fname));
Intent share = new Intent();
share.setAction(Intent.ACTION_SEND);
share.setPackage("com.whatsapp");
share.putExtra(Intent.EXTRA_TEXT,ci.description);
share.putExtra(Intent.EXTRA_STREAM,uri);
share.setType("image/*");
share.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
try {
context.startActivity(share);
}catch (Exception what){
Toast.makeText(context,"Whatsapp have not been installed",Toast.LENGTH_LONG).show();
}
である私のスクリーンショットが
で誰も私を助けることができますか?
あなたが正しいです。ありがとうございました – Rajkumar