android - How to open camera directly in panorama/photosphere mode? -


i stuck in problem in android 4.2 jelly bean.

how can open camera application, default in panorama/360 photosphere mode?

i have searched lot in grepcode , camera.parameters, nothing seems help. have clues open camera in panorama mode apart video , image?

there no standard way it. afaik panorama, photoshere proprietary features of gallery3d (provided google) package com.google.android.gallery3d. it's depends on firmware of device.

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 start activity 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); 

but throws nullpointerexception in camera app.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -