我怎么能显示Photo Sphere全景照片(用一个简单的意图)? [英] How could I display Photo Spheres (with an easy Intent)?
问题描述
我将显示Photo Sphere全景照片!
I will display Photo Spheres (3D Images in Android 4.2)!
我看过的http://android-developers.blogspot.de/2012/12/new-google-maps-android-api-now-part-of.html.但我无法使用它。我有以下意图在我的应用程序:
I have read http://android-developers.blogspot.de/2012/12/new-google-maps-android-api-now-part-of.html. But I couldn't use it. I have the following intent in my app:
if (url.contains(".jpg")) {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(url), "image/*");
startActivity(intent);
} else { ...
因此也被形象地显示在设备与Android< 4.2。但在Android> = 4.2的图像显示,但我无法激活的全景照片查看!
So the image is also shown on device with Android <4.2. But on Android >=4.2 the image is shown but I could not activate the photo sphere view!
我怎么能修改的意图是什么?谢谢你。
How could I modify the intent? Thanks.
推荐答案
要显示全景照片在Android上,你可以使用在谷歌找到了PanoramaClient API播放服务。该文件是在这里: 的http://developer.android.com/reference/com/google/android/gms/panorama/PanoramaClient.html
To display a Photo Sphere on Android you can use the PanoramaClient API found in Google Play Services. The documentation is here: http://developer.android.com/reference/com/google/android/gms/panorama/PanoramaClient.html
您可以看看我们去年的博文,看看如何使用它的一个例子: 的http://android-developers.blogspot.com/2012/12/new-google-maps-android-api-now-part-of.html
You can check out our blogpost from last year to see an example on how to use it: http://android-developers.blogspot.com/2012/12/new-google-maps-android-api-now-part-of.html
这篇关于我怎么能显示Photo Sphere全景照片(用一个简单的意图)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!