Android 上的照片球支持
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页提供 Android 中对全景摄影的支持概览。
Android 4.2 首次推出了这些功能及照片球相机。
用于查看 360 度全景照片的 API
适用于希望在互动模式下显示 360 度全景照片的 Android 应用
球形查看器,Google Play 服务也为此功能提供支持。
请参阅 Panorama 软件包参考文档
网站。
全景照片 MIME 类型
在 Android 4.2 中,我们引入了新的供应商专用 MIME 类型,
区分普通照片和 360 度全景照片
水平。希望处理此类全景照片的应用程序应
为以下 MIME 类型注册一个 intent 过滤器:
application/vnd.google.panorama360+jpg
“图库”应用的“分享”菜单会 360 度使用此 MIME 类型
因此,只要应用具有此 MIME 类型的 intent 过滤器,
对于运行 Android 4.2 的设备,将会添加到此菜单中。
例如,Google 地图应用使用此 MIME 类型允许用户
上传 360 度全景图片,供所有 Google 地图用户查看
(上传图片中需要添加地理标记)。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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)."]]