val fileUri = FileProvider.getUriForFile(context, context.packageName + ".fileprovider", pdfFile)
val shareIntent = ShareCompat.IntentBuilder
.from(this@MainActivity)
.setType(baseContext.contentResolver.getType(fileUri))
.setStream(fileUri)
.setSubject(getString(R.string.app_name))
.setText("Please find attached ...")
.setEmailTo(arrayOf("email@gmail.com"))
.intent // added this
shareIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
startActivity(shareIntent)
答案 0 :(得分:0)
在底部移动打印行:
rrow, rcol = first_replacement_loc(rows, cols, rotations)