Comments (5)
I was having the same problem.
make sure that you are calling the startPreviewingCamera() before you call openCamera.
from android-camera2basic.
yes
from android-camera2basic.
have you solve this problem?
from android-camera2basic.
@panxu no ..
from android-camera2basic.
@qssq I had similar issue, in my case that was because of TextureView.SurfaceTextureListener - surface can become available when CameraActivity/Fragment whatever is still in the background - not visible for user. This code solved issue:
@Override
public boolean onSurfaceTextureDestroyed(SurfaceTexture texture) {
Log.d(TAG, "TextureView.SurfaceTextureListener.onSurfaceTextureDestroyed called");
setSurfaceTextureListener(null);
closeCamera();
return true;
}
from android-camera2basic.
Related Issues (20)
- Taking several images in samsung galaxy 7
- Not Getting clear image in Lenovo Tablet Versions HOT 1
- Crash after lockscreen in landscape HOT 1
- InstanceCountViolation HOT 2
- Preview freeze HOT 1
- How to lock ISO or EXPOSURE_TIME when adjusting EXPOSURE_COMPENSATION? HOT 1
- android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): submitRequestList:283 HOT 10
- The application falls on huawei p8 lite 2017 HOT 1
- AutoFitTextureView capture's a frame that is not visible in camera preview HOT 1
- 疑问 HOT 2
- Usable API? HOT 1
- I/swiftshader: lock failed: buffer of 640x480 too small for window of 480x640 HOT 1
- Image gets rotated by 90 degrees left HOT 3
- how to take care of focus if the af_state return 0. Screen hangs with no camera capture HOT 1
- Native memory usage keeps increasing without interference in the Profiler HOT 1
- Camera2 API sucks HOT 1
- Error Take photo xaomi HOT 1
- why saved twice? HOT 1
- TextureView sometimes does not fit properly while switching between landscape and portrait mode HOT 1
- couldn't find "libnvision_core.so" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-camera2basic.