android-multiple-images-selector icon indicating copy to clipboard operation
android-multiple-images-selector copied to clipboard

Android7.0 打开相机崩溃

Open limhGeek opened this issue 7 years ago • 5 comments

点击相机奔溃了

limhGeek avatar Mar 25 '18 03:03 limhGeek

@limhGeek did you found any solution ?

chnouman avatar Apr 16 '18 05:04 chnouman

Unfit Android7.0 to open the camera crash

limhGeek avatar Apr 16 '18 05:04 limhGeek

i resolved this issue bro you just need to add this code in Application class's onCreate method.

if(Build.VERSION.SDK_INT>=24){
            try{
                Method m = StrictMode.class.getMethod("disableDeathOnFileUriExposure");
                m.invoke(null);
            }catch(Exception e){
                e.printStackTrace();
            }
        }

working perfectly on android 7.

chnouman avatar Apr 16 '18 05:04 chnouman

Thank you for the support of the big guy

limhGeek avatar Apr 16 '18 05:04 limhGeek

my pleasure dear.

chnouman avatar Apr 16 '18 05:04 chnouman