我正在通过本教程https://developers.google.com/cloud-print/docs/android进行谷歌云打印。我正在尝试向我的应用程序添加打印功能。但是我不知道 docUri 代表/意味着/定义什么。我正在尝试打印文件“/sdcard/StudentLatePass.txt”
这是我目前所拥有的
public void onClick(View v) {
//Print using Google Cloud Print
Intent printIntent = new Intent(StudentActivity.this, PrintDialogActivity.class);
printIntent.setDataAndType(docUri, "text/plain");
printIntent.putExtra("title", "Student Late Pass");
startActivity(printIntent);
}// onClick
});// btnPrintSDFile