Hỗ trợ Ảnh toàn cảnh 360 độ trên Android
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trang này cung cấp thông tin tổng quan về việc hỗ trợ tính năng chụp ảnh toàn cảnh trong Android.
Các tính năng này được giới thiệu lần đầu trong Android 4.2 với máy ảnh Ảnh toàn cảnh 360 độ.
API để xem ảnh toàn cảnh 360 độ
Dành cho các ứng dụng Android muốn hiển thị ảnh toàn cảnh 360 độ ở chế độ tương tác
trình xem hình cầu, thì Dịch vụ Google Play sẽ hỗ trợ chức năng này.
Xem Tài liệu tham khảo về gói Ảnh toàn cảnh
để biết thêm thông tin.
Loại MIME ảnh toàn cảnh 360 độ
Trong Android 4.2, chúng tôi đã giới thiệu một loại MIME mới dành riêng cho nhà cung cấp để cung cấp
sự khác biệt giữa ảnh thông thường và ảnh toàn cảnh 360 độ
theo chiều ngang. Ứng dụng muốn xử lý ảnh toàn cảnh 360 độ thuộc loại này nên
hãy đăng ký một bộ lọc ý định cho loại MIME sau đây:
application/vnd.google.panorama360+jpg
Trình đơn Chia sẻ của ứng dụng Thư viện sử dụng loại MIME này cho 360 độ
ảnh toàn cảnh 360 độ, vì vậy, bất kỳ ứng dụng nào có bộ lọc ý định cho loại MIME này
sẽ được thêm vào trình đơn này đối với các thiết bị chạy Android 4.2.
Ví dụ: ứng dụng Google Maps sử dụng loại MIME này để cho phép người dùng
tải ảnh toàn cảnh 360 độ lên để tất cả người dùng Google Maps xem
(cần có thẻ địa lý trong hình ảnh để tải lên).
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eAndroid 4.2 introduced Photo Sphere for creating and viewing panoramic images.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the Google Play services Panorama package to display interactive photo spheres in their apps.\u003c/p\u003e\n"],["\u003cp\u003eA specific MIME type (\u003ccode\u003eapplication/vnd.google.panorama360+jpg\u003c/code\u003e) identifies 360° photo spheres for sharing and handling.\u003c/p\u003e\n"],["\u003cp\u003eApps can register an intent filter for this MIME type to appear in the Gallery app's Share menu and enable functionalities like uploading to Google Maps.\u003c/p\u003e\n"]]],["Android 4.2 introduced panoramic photography support, including the Photo Sphere camera. Google Play services offers an API for displaying interactive photo spheres. A unique MIME type, `application/vnd.google.panorama360+jpg`, distinguishes 360-degree photo spheres from regular photos. Apps can register an intent filter for this MIME type to handle photo spheres, appearing in the Gallery's Share menu. Google Maps utilizes this MIME type for user uploads of 360-degree panoramic images, requiring geotags.\n"],null,["# Photo Sphere Support on Android\n\nThis page provides an overview of support for panoramic photography in Android.\nThese features were first introduced in Android 4.2 with the Photo Sphere camera.\n\nAPI for viewing photo spheres\n-----------------------------\n\nFor Android applications that wish to display photo spheres in an interactive\nspherical viewer, Google Play services provides support for this functionality.\nSee the [Panorama package reference](/android/reference/com/google/android/gms/panorama/package-summary)\nwebsite for more information.\n\nPhoto sphere MIME type\n----------------------\n\nIn Android 4.2 we introduced a new vendor specific MIME type to provide\ndifferentiation between regular photos and photo spheres that are 360 degrees\nhorizontally. Applications that wish to handle photo spheres of this type should\nregister an intent filter for the following MIME type: \n\n application/vnd.google.panorama360+jpg\n\nThe Gallery application's Share menu uses this MIME type for 360 degree\nphoto spheres, so any application that has an intent-filter for this MIME type\nwill be added to this menu for devices running Android 4.2.\n\nFor example, the Google Maps application uses this MIME type to allow users to\nupload 360 degree panoramic images for all Google Maps users to see\n(a geotag is required in the image for upload)."]]