Kho lưu trữ mẫu SDK Địa điểm dành cho Android trên GitHub bao gồm các ứng dụng mẫu minh hoạ cách sử dụng SDK Địa điểm dành cho Android.
Nhập và tạo ứng dụng, thêm khoá API, xem bản minh hoạ và sử dụng mã mẫu được cung cấp làm điểm xuất phát cho ứng dụng.
Khi bạn chạy ứng dụng mẫu, ứng dụng này sẽ hiển thị danh sách các mẫu có sẵn mà bạn có thể chạy trên thiết bị của riêng mình. Chọn một trong các lựa chọn. Ví dụ: nhấp vào Tự động hoàn thành vị trí.
Sao chép và chạy các mẫu
Bạn cần có Git để chạy mẫu này trên máy. Lệnh sau đây sẽ sao chép kho lưu trữ ứng dụng mẫu.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-04-26 UTC."],[[["This page provides instructions for setting up and running sample apps that demonstrate the use of the Places SDK for Android."],["The sample apps are available in both Kotlin and Java, accessible through a GitHub repository."],["You'll need to clone the repository, import the project into Android Studio, and configure your API keys to run the examples."],["The provided samples showcase various functionalities like Place Autocomplete, offering a starting point for developing your own Android apps with Places SDK."],["Troubleshooting information is included if the map doesn't display, guiding you to verify the API key configuration."]]],[]]