Git Product home page Git Product logo

Comments (6)

dumazy avatar dumazy commented on April 28, 2024

I'm also having this issue on Android 6.0 and 7.0.
I have a CameraActivity where I start the CameraView in onResume and stop it in onPause. When I call startActivityForResult() and return in onActivityResult(), I start another Activty before going through the lifecycle of CameraActivity. Somehow this causes the issue mentioned above when calling cameraView.stop() in onPause()

from cameraview.

dumazy avatar dumazy commented on April 28, 2024

I made a pull request for a null check that avoids this issue and fixes the problem in the case that I mentioned above

from cameraview.

ankitbatra11 avatar ankitbatra11 commented on April 28, 2024

Thanks. Will pull it.

In my case, I am using service to host the camera view. User can toggle the camera view which I handle by removing and adding the view through window manager. Every time I add it to window, I call start on the camera view and that's where it fails sometimes.

from cameraview.

yaraki avatar yaraki commented on April 28, 2024

Fixed by the pull request.

from cameraview.

LouisCAD avatar LouisCAD commented on April 28, 2024

Which pull request?

from cameraview.

richardjbs avatar richardjbs commented on April 28, 2024

@yaraki I am still experimenting this issue on the 3eaeac0 commit (latest version at the moment).

from cameraview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.