menu
up-caret
down-caret

CameraKit

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

# General

General Chatter

Trending conversations
How to restart when a Camera2 connection has failed?
@glenatron · 2d
Does the latest version has the capability to record video?
@darthcor · 41d
Taking images of a different size
@glenatron · 7d
Would it be possible to notify the app of errors?
@glenatron · 7d
I don't understand, `master` branch is v0.13.5 but the demo app (in the same…
@slob · 5d

(Solved) Why might CameraKit be crashing on rotate?

CameraKit/General · February 15, 2019 at 4:07pm

(Solved) Why might CameraKit be crashing on rotate?

February 15, 2019 at 4:07pm (Edited 1 month 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