Uri contentUri = FileProvider.getUriForFile(this, "com.mydomain.fileprovider", newFile);intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);i.setData(contentUri);
↧
Answer by PArth SOni for Error: Cannot attach empty file in GMAIL app using File provider
↧