การพิมพ์ไฟล์
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ผู้ใช้ Android มักจะดูเนื้อหาในอุปกรณ์ของตนเองเพียงอย่างเดียว แต่บางครั้งการแสดงหน้าจอให้ผู้อื่นดูก็ไม่ใช่วิธีที่เหมาะสมในการแชร์ข้อมูล ความสามารถในการพิมพ์ข้อมูลจากแอปพลิเคชัน Android จะช่วยให้ผู้ใช้เห็นเนื้อหาจากแอปของคุณในขนาดที่ใหญ่ขึ้นหรือแชร์กับบุคคลอื่นที่ไม่ได้ใช้แอปพลิเคชันของคุณ
การพิมพ์ยังช่วยให้เจ้าหน้าที่สร้างภาพรวมของข้อมูลที่ไม่ต้องอาศัยการมีอุปกรณ์ แบตเตอรี่ที่เพียงพอ หรือการเชื่อมต่อเครือข่ายไร้สาย
ใน Android 4.4 (API ระดับ 19) ขึ้นไป เฟรมเวิร์กจะให้บริการพิมพ์รูปภาพและเอกสารจากแอปพลิเคชัน Android โดยตรง การฝึกอบรมนี้จะอธิบายวิธีเปิดใช้การพิมพ์ในแอปพลิเคชัน ซึ่งรวมถึงการพิมพ์รูปภาพ หน้า HTML และการสร้างเอกสารที่กำหนดเองสำหรับการพิมพ์
บทเรียน
-
การพิมพ์รูปภาพ
- บทเรียนนี้จะแสดงวิธีพิมพ์รูปภาพ
-
การพิมพ์เอกสาร HTML
- บทเรียนนี้จะแสดงวิธีพิมพ์เอกสาร HTML
-
การพิมพ์เอกสารที่กำหนดเอง
- บทเรียนนี้จะแสดงวิธีเชื่อมต่อกับเครื่องมือจัดการการพิมพ์ของ Android สร้างอะแดปเตอร์การพิมพ์ และสร้างเนื้อหาสำหรับการพิมพ์
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# Printing files\n\nAndroid users frequently view content solely on their devices, but there are times when\nshowing someone a screen is not an adequate way to share information. Being able to print\ninformation from your Android application gives users a way to see a larger version of the\ncontent from your app or share it with another person who is not using your application.\nPrinting also allows them to create a snapshot of information that does not depend on having a\ndevice, sufficient battery power, or a wireless network connection.\n\n\nIn Android 4.4 (API level 19) and higher, the framework provides services for printing images and\ndocuments directly from Android applications. This training describes how to enable printing in\nyour application, including printing images, HTML pages and creating custom documents for\nprinting.\n\nLessons\n-------\n\n\n**[Printing a photo](/training/printing/photos)**\n: This lesson shows you how to print an image.\n\n\n**[Printing an HTML document](/training/printing/html-docs)**\n: This lesson shows you how to print an HTML document.\n\n\n**[Printing a custom document](/training/printing/custom-docs)**\n: This lesson shows you how you connect to the Android print manager, create a print adapter\n and build content for printing."]]