You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working on project that implements Fotoapparat it worked properly earlier but now when I am back for testing, Cameraview is not showing camera to capture image but capturing button is visible.
Here is the code
newHandler().postDelayed(() -> {
foto = Fotoapparat
.with(getApplicationContext())
.into(camera_view) // view which will draw the camera preview
.previewScaleType(ScaleType.CenterCrop) // we want the preview to fill the view
.photoResolution(ResolutionSelectorsKt.highestResolution()) // we want to have the biggest photo possible
.lensPosition(fromScreen.equals("profilePicture") ? front() : back()) // we want back camera
.focusMode(SelectorsKt.firstAvailable( // (optional) use the first focus mode which is supported by deviceFocusModeSelectorsKt.continuousFocusPicture(),
FocusModeSelectorsKt.autoFocus(), // in case if continuous focus is not available on device, auto focus will be usedFocusModeSelectorsKt.fixed() // if even auto focus is not available - fixed focus mode will be used
))
.flash(SelectorsKt.firstAvailable( // (optional) sFimilar to how it is done for focus mode, this time for flashFlashSelectorsKt.autoRedEye(),
FlashSelectorsKt.autoFlash(),
FlashSelectorsKt.off()
))
.logger(LoggersKt.loggers( // (optional) we want to log camera events in 2 places at onceLoggersKt.logcat(), // ... in logcatLoggersKt.fileLogger(this) // ... and to file
))
.cameraErrorCallback(e -> {
e.printStackTrace();
Log.d("TAG", "Error: "+e.getMessage());
Toast.makeText(this, "Chip[)a: "+e.getMessage(), Toast.LENGTH_SHORT).show();
})
.build();
}, 200);
Hi guys,
I was working on project that implements Fotoapparat it worked properly earlier but now when I am back for testing, Cameraview is not showing camera to capture image but capturing button is visible.
Here is the code
How did you initialize FA?
When I run application this is what I am getting
The text was updated successfully, but these errors were encountered: