Android 支援的 360 度全景相片
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁提供 Android 全景攝影支援。
這些功能是在 Android 4.2 中率先推出的,搭載 360 度全景相片。
用來瀏覽全景相片的 API
適用於想在互動式狀態下顯示全景相片的 Android 應用程式
Google Play 服務支援這項功能。
請參閱全景套件參考資料
網站瞭解詳情。
全景相片 MIME 類型
在 Android 4.2 中,我們導入了新的供應商專屬 MIME 類型,以提供
區分一般相片和 360 度全景相片
水平移動應用程式如要處理這類 360 度全景相片,
註冊下列 MIME 類型的意圖篩選器:
application/vnd.google.panorama360+jpg
「圖片庫」應用程式的「分享」選單會將這個 MIME 類型設為 360 度
因此任何有此 MIME 類型專用意圖篩選器的應用程式
將會新增至這個選單,適用於搭載 Android 4.2 的裝置。
舉例來說,Google 地圖應用程式使用這個 MIME 類型,
上傳 360 度全景圖片,讓所有 Google 地圖使用者瀏覽
(圖片中必須要有地理標記才能上傳)。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\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)."]]