I've just wanted share byte array but when I used "EXTRA_STREAM" it didn't work. Please help me.
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
if (attachBytes != null) {
intent.putExtra(Intent.EXTRA_STREAM, byteArray);
intent.setType(sharingMessageType + "/*");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
}
return intent;