Skip to content

Surface View stops camera preview #60

@rohitsharma181589

Description

@rohitsharma181589

Do you want to request a feature or report a bug?

What is the current behavior?

Surface View doesn't show camera preview (Or camera stops) when user locks the device and resume the activity again and this generally happens when u lock your device. Here the part of log:

CAMERA_MSG_STATE_CALLBACK
mCameraStateCallback is null
Camera-JNI: copyAndPost: off=0, size=518400 msg=10
Camera-JNI: copyAndPost: off=0, size=518400 msg=10
Camera-JNI: copyAndPost: off=0, size=518400 msg=10

Any other comments?

I am performing these operations in onPause and onDestroy:
@OverRide
protected void onPause() {
if (null != qrEader) {
qrEader.stop();
}
super.onPause();
}

@Override
protected void onDestroy() {
    super.onDestroy();
    if (null != qrEader) {
        qrEader.releaseAndCleanup();
    }
}

and restrating qrReader in onResume:
qrEader.start();

Device Information: one plus 5
Android Version: android oreo

I also found out this in my log:
W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found.
W/zygote64: Unsupported class loader
W/zygote64: Skipping duplicate class check due to unsupported classloader
I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1702

Skipping duplicate class check due to unsupported classloader
I/Vision: Loading library libbarhopper.so
I/zygote64: The ClassLoaderContext is a special shared library.
The ClassLoaderContext is a special shared library.
Access denied finding property "camera.hal1.packagelist"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions