skip to Main Content

Unsupported attachment – Telegram API

private void sendPdf(String file) { // Uri uri = Uri.fromFile(new File(file)); Uri uri = FileProvider.getUriForFile(getContext(), BuildConfig.APPLICATION_ID + ".fileprovider", new File(String.valueOf(file))); intent = new Intent(Intent.ACTION_SEND); // intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION & Intent.FLAG_GRANT_WRITE_URI_PERMISSION); // intent.putExtra(Intent.EXTRA_SUBJECT, "Transaction history"); intent.setType("*/*"); intent.putExtra(Intent.EXTRA_STREAM, uri); // invitation body Intent chooser…

VIEW QUESTION
Back To Top
Search