Implemented with Fragment but when minimize the App, camera preview showing black screen.
amit016verma opened this issue · 3 comments
Thanku for this demo , its help me alot , but one problem I am facing with that , I have implemented this with the fragment , its working fine everything but when I minimize my app and again open , not showing camera preview and when I click on capture its take the photo easily thats every strange can you help me out from this,
Thanks in Advance .
CameraView:
// if (Build.VERSION.SDK_INT < 21) {
mImpl = new Camera1(mCallbacks, preview);
// } else if (Build.VERSION.SDK_INT < 23) {
// mImpl = new Camera2(mCallbacks, preview, context);
// } else {
// mImpl = new Camera2Api23(mCallbacks, preview, context);
// }
Thank you. I forgot to paste that code and found the reason. it is createPreviewImpl()