How to implement Camera functionality with extra options (like Panorama)?

后端 未结 3 1956
伪装坚强ぢ
伪装坚强ぢ 2021-02-13 19:40

I am mainly interested in panorama option. Is there a way to open the native Camera app (the enhanced version), so the user can switch between normal photo and panorama view? Is

3条回答
  •  悲哀的现实
    2021-02-13 20:03

    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.

    in manifest file

       
    
    
    
    
    
    
    

    in your activity

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

提交回复
热议问题