Cognitive-Face-Android icon indicating copy to clipboard operation
Cognitive-Face-Android copied to clipboard

open camera error

Open Wulanpanekenan opened this issue 6 years ago • 2 comments

It says = "Microsoft Cognitive Service Face has stopped." Open app again. why ? thankyou

Wulanpanekenan avatar Jan 16 '19 14:01 Wulanpanekenan

This may because that if targetSdkVersion is >= Android 6.0(API level 23), developer need to add some code for request related permissions from the user at the runtime.

If you still want to implement the "Open Camera/Take Picture" function, you should request the permisson of CAMERA for take pictures and storage related permisson for saving pictures at the runtime. And maybe FileProvider can be used to store pictures.

You can refer to https://developer.android.com/training/permissions/requesting and https://developer.android.com/reference/android/support/v4/content/FileProvider

Hope this could help you.

LuolinRowling avatar Mar 11 '19 11:03 LuolinRowling

Thanks Lin for the PR #54 to fix this issue. @Wulanpanekenan please have a try with it and let me know if you still face the problem by any chance.

lebronJ avatar Mar 11 '19 15:03 lebronJ