Cognitive-Face-Android
Cognitive-Face-Android copied to clipboard
open camera error
It says = "Microsoft Cognitive Service Face has stopped." Open app again. why ? thankyou
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.
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.