如何直接在全景/光球模式下打开摄像头? [英] How to open camera directly in panorama/photosphere mode?

查看:291
本文介绍了如何直接在全景/光球模式下打开摄像头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被困在一个问题中的Andr​​oid 4.2果冻豆。

I am stuck in a problem in Android 4.2 Jelly Bean.

我怎样才能打开摄像头从我的应用程序,默认情况下在全景/ 360光球模式?

How can I open camera from my application, by default in panorama/360 photosphere mode?

我在<一个搜索了很多href="http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android-apps/4.1.2_r1/com/android/camera/Camera.java"相对=nofollow>的grep code 也 Camera.Parameters 的,但似乎没有任何帮助。没有任何人有任何线索,以全景拍摄模式除了视频和图像打开相机?

I have searched a lot in grepcode and also Camera.Parameters, but nothing seems to help. Does anybody have any clues to open camera in panorama mode apart from video and image?

推荐答案

有没有标准的方式来做到这一点。  AFAIK全景,Photoshere是Gallery3d的专有功能(由谷歌提供) 包com.google.android.gallery3d。它依赖于设备的固件。

there is no standard way to do it. AFAIK Panorama, Photoshere are proprietary features of Gallery3d (provided by Google) package com.google.android.gallery3d. It's depends on firmware of the device.

在ApplicationManifest.xml

in ApplicationManifest.xml

<activity clearTaskOnLaunch="true" screenOrientation="0" name="com.google.android.apps.lightcycle.ProtectedPanoramaCaptureActivity" theme="resource_id:0x1030007" configChanges="1184" label="resource_id:0x7f0a00b2" windowSoftInputMode="35" taskAffinity="com.google.android.camera">
<intent-filter>
<action name="android.intent.action.MAIN">
</action>
</intent-filter>
</activity>

我试图从我的应用程序启动这个活动

I've tried to start this activity from my application

    Intent res = new Intent();
    String mPackage = "com.google.android.gallery3d";
    String mClass = "com.google.android.apps.lightcycle.ProtectedPanoramaCaptureActivity";

    res.setComponent(new ComponentName(mPackage,mClass));
    startActivity(res);

但它引发NullPointerException异常的摄像头应用程序。

but it throws NullPointerException in camera app.

这篇关于如何直接在全景/光球模式下打开摄像头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆