Search code examples
androidandroid-intentandroid-cameraandroid-camera-intent

Get the color of a pixel from camera intent


I am new with android studio and I have a question about camera.I have done the Take photo tutorial and now I have a button that opens my camera app. I want to take the color of a pixel from the camera app without saving the picture. It is possible or I need to make camera API in order to take that color?

Any suggestion or tips about how I can make this project are welcomed.


Solution

  • Android camera intent either saves an image file, or it is cancelled. You need camera API approach to catch pixels without creating files. You can use a library like fotoapparat to wraps the tricky API for easy usage.