Obsługa zdjęć sferycznych na Androidzie
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ta strona zawiera omówienie obsługi zdjęć panoramicznych na Androidzie.
Te funkcje zostały po raz pierwszy wprowadzone w Androidzie 4.2 wraz z aparatem Photo Sphere.
Interfejs API do wyświetlania zdjęć sferycznych
W przypadku aplikacji na Androida, które chcą wyświetlać zdjęcia sferyczne w interaktywnej postaci
Google Play obsługuje tę funkcję.
Zobacz informacje o pakiecie Panorama.
.
Typ MIME zdjęcia sferycznego
W Androidzie 4.2 wprowadziliśmy nowy typ MIME specyficzny dla dostawcy,
różnica między zwykłymi zdjęciami a zdjęciami sferycznymi w zakresie 360 stopni
w poziomie. Aplikacje, które chcą obsługiwać zdjęcia sferyczne tego typu, powinny
zarejestruj filtr intencji dla tego typu MIME:
application/vnd.google.panorama360+jpg
Menu udostępniania w aplikacji Galeria korzysta z tego typu MIME dla widoku 360°
dzięki czemu każda aplikacja ma filtr intencji dla tego typu MIME.
zostanie dodana do tego menu na urządzeniach z Androidem 4.2.
Na przykład aplikacja Mapy Google używa tego typu MIME, aby umożliwić użytkownikom
przesyłać panoramiczne zdjęcia 360° dla wszystkich użytkowników Map Google, które mogą oglądać
(aby przesłać zdjęcie, musisz dodać do niego geotag).
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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)."]]