私はこのチュートリアルhttps://developers.google.com/cloud-print/docs/androidのGoogleクラウドプリントに取り組んでいます。アプリケーションに印刷機能を追加しようとしています。しかし、私は 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