ภาพรวมการดำเนินการของเครือข่าย
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำแนะนำในส่วนนี้จะอธิบายงานพื้นฐานที่เกี่ยวข้องกับการเชื่อมต่อกับเครือข่าย การตรวจสอบการเชื่อมต่อเครือข่าย (รวมถึงการเปลี่ยนแปลงการเชื่อมต่อ) และการให้ผู้ใช้ควบคุมการใช้เครือข่ายของแอป นอกจากนี้ยังอธิบายวิธี
แยกวิเคราะห์และใช้ข้อมูล XML
คู่มือเหล่านี้อธิบายโครงสร้างพื้นฐานสำหรับการสร้างแอปพลิเคชัน Android
ที่ดาวน์โหลดเนื้อหาและแยกวิเคราะห์ข้อมูลได้อย่างมีประสิทธิภาพ พร้อมทั้งลด
การรับส่งข้อมูลเครือข่ายให้เหลือน้อยที่สุด
ดูข้อมูลเพิ่มเติมเกี่ยวกับหัวข้อนี้ได้ในคำแนะนำที่เกี่ยวข้องต่อไปนี้
เส้นนำ
- เชื่อมต่อกับเครือข่าย
- ดูวิธีเชื่อมต่อกับเครือข่าย เลือกไคลเอ็นต์ HTTP และดำเนินการ
เครือข่ายนอกเธรด UI
- จัดการการใช้งานเครือข่าย
- ดูวิธีตรวจสอบการเชื่อมต่อเครือข่ายของอุปกรณ์ สร้าง UI ค่ากำหนด
สำหรับการควบคุมการใช้เครือข่าย และตอบสนองต่อการเปลี่ยนแปลงการเชื่อมต่อ
- แยกวิเคราะห์ข้อมูล XML
- ดูวิธีแยกวิเคราะห์และใช้ข้อมูล XML
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# Perform network operations overview\n\nThe guides in this section explain the basic tasks involved in connecting to the\nnetwork, monitoring the network connection (including connection changes), and\ngiving users control over an app\\\\'s network usage. They also describe how to\nparse and consume XML data.\n\nThese guides describe the fundamental building blocks for creating Android\napplications that download content and parse data efficiently while minimizing\nnetwork traffic.\n\nTo learn more about this topic, see the following related guides:\n\n- [Reduce network battery drain: Overview](/develop/connectivity/preserving-battery)\n- [Minimize the effect of regular updates](/develop/connectivity/minimize-effect-regular-updates)\n- [Web-based content](/guide/webapps)\n\nGuides\n------\n\n**[Connect to the network](/develop/connectivity/network-ops/connecting)**\n: Learn how to connect to the network, choose an HTTP client, and perform\n network operations outside of the UI thread.\n\n**[Manage network usage](/develop/connectivity/network-ops/managing)**\n: Learn how to check a device\\\\'s network connection, create a preference UI\n for controlling network usage, and respond to connection changes.\n\n**[Parse XML data](/develop/connectivity/network-ops/xml)**\n: Learn how to parse and consume XML data."]]