RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.82k stars 405 forks source link

Error "Failed to open camera with lens position: [NAME] and id: [ID]" #156

Closed koenschauwaert closed 6 years ago

koenschauwaert commented 6 years ago

When I just start the app, nothing goes wrong. I can switch between front and rear (I used the Sample code), I can make a picture, go to a new activity and view this picture, but when pressing the back button...

@Override
public void onBackPressed(){
    super.onBackPressed();
}

...to return to the activity where my cameraview is shown, I get the following error:

io.fotoapparat.b.b: Failed to open camera with lens position: BACK and id: 0

And

io.fotoapparat.b.b: Failed to open camera with lens position: FRONT and id: 1

Context

Devices:

I use the newest library:

implementation 'io.fotoapparat.fotoapparat:library:1.5.0'
Diolor commented 6 years ago

Can you please paste or upload the code which is not working?