menu

CameraKit

One of the hardest Android APIs made into a high level and easy to use library that solves all of your problems.

Channels
Team

(Solved) Why might CameraKit be crashing on rotate?

February 15, 2019 at 4:07pm

(Solved) Why might CameraKit be crashing on rotate?

February 15, 2019 at 4:07pm (Edited 2 months ago)

I am trying to integrate CameraKit with my app, having got it working nicely in a proof-of-concept code spike, and the problem I am seeing right now is that when I rotate the device, my activity crashes, but there is no error message and nothing seems to happen in the CameraKitView.ErrorListener, I just suddenly find myself bounced back from the CameraActivity to the MainActivity with no obvious cause or trace in the log.

The structure is a little like this: MainActivity -> CameraActivity -> CameraFragment -> CameraKitView

How should I go about figuring out the problem?


February 15, 2019 at 4:19pm

NEVER MIND one thing that might cause it to close the activity is if a bit of code I had to handle crashes when I was trying to use Camera2 was being triggered now I don't have the orientation changed events any more. Apologies!

  • reply
  • like