Akh*_*ain 15 android panoramas android-camera android-4.2-jelly-bean
我陷入了Android 4.2 Jelly Bean的问题.
如何在我的应用程序中打开相机,默认情况下在全景/ 360幻灯片模式下?
我在grepcode和Camera.Parameters中搜索了很多,但似乎没有任何帮助.除了视频和图像之外,有没有人在全景模式下打开相机的线索?
没有标准的方法可以做到这一点。AFAIK Panorama、Photoshere 是 Gallery3d(由 Google 提供)包 com.google.android.gallery3d 的专有功能。这取决于设备的固件。
在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>
Run Code Online (Sandbox Code Playgroud)
我尝试从我的应用程序启动此活动
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);
Run Code Online (Sandbox Code Playgroud)
但它在相机应用程序中抛出 NullPointerException 。
归档时间: |
|
查看次数: |
5610 次 |
最近记录: |