I’ve got the same problem. mCamera.setPreviewCallback(null);
didn’t help. In my activity I’ve added this to releaseCamera
:
mPreview.getHolder().removeCallback(mPreview);
and it works now.
More Related Contents:
- How can I read a text file in Android?
- Concurrent Modification Exception : adding to an ArrayList
- Getting frames from Video Image in Android
- Android: Switch camera when button clicked
- How to catch a Firebase Auth specific exceptions
- Java / Android – How to print out a full stack trace?
- How to Apply Custom Filters in a Camera [Surfaceview Preview]…?
- Automatically log Android lifecycle events using ActivityLifecycleCallbacks?
- How to remove all callbacks from a Handler?
- Android exception handling best practice?
- What is the difference between `opencv.android.JavaCameraView` and `opencv.android.NativeCameraView`
- Android: detect brightness (amount of light) in phone’s surroundings using the camera?
- ThreeTen-Backport error on Android – ZoneRulesException: No time-zone data files registered
- connect failed: ECONNREFUSED
- pointerIndex out of range Android multitouch
- Android: ClassNotFoundException when passing serializable object to Activity
- Callback from Adapter
- Prevent flipping of the front facing camera
- How to create a proper Volley Listener for cross class Volley method calling
- Using the camera activity in Android
- Why is my app is crashing while using async task?
- Firebase Android ListView not being displayed
- How to make an Android device vibrate? with different frequency?
- Get driving directions using Google Maps API v2
- Prevent Android activity dialog from closing on outside touch
- Garbage collector in Android
- How to programmatically add views and constraints to a ConstraintLayout?
- How can I pass values between a Dialog and an Activity?
- Multiple or Single Try Catch [duplicate]
- iText create document with unequal page sizes