Code Monkey home page Code Monkey logo

android-camera's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

android-camera's Issues

Wrong CameraPreview Orientation

Steps to reproduce:

  1. Lock the device orientation.
    or
    Lock activity orientation to portrait only.

  2. Opening activity which has camera fragment by holding the device in landscape.

  3. Now Camera preview is showing portrait preview, not in landscape preview, then rotating device preview is disturbed.

Application getting crashed every time on pre- lollipop devices.

Hi,
I Have tried sample project and this is working fine on >= Lollipop devices but , application always crashed on pre-lollipop devices. here are I am attaching logs for that:
FATAL EXCEPTION: main
Process: xyz.pinaki.androidcamera.example, PID: 15232
java.lang.VerifyError: xyz/pinaki/android/camera/CenteredCameraPreviewHolder
at xyz.pinaki.android.camera.CameraFragment.createCenteredCameraPreview(CameraFragment.java:270)
at xyz.pinaki.android.camera.CameraFragment.access$600(CameraFragment.java:39)
at xyz.pinaki.android.camera.CameraFragment$1.onCameraOpen(CameraFragment.java:68)
at xyz.pinaki.android.camera.CameraHandlerThread$1$1.run(CameraHandlerThread.java:37)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5050)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)

How you close camera

Hi, sorry but I couldn't find a way to close the camera once open, it would be great to have a way of finishing capturing images and hide the views created, the onCameraClosed is called when i change between front and rear camera but there is no way to close the camera after capturing the photo.

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.