We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After i open easycamera class, i get preview of the camera but camera is freezing.
public class MakePhotoActivity extends Activity {
SurfaceHolder previewHolder; SurfaceView mSurfaceView; private boolean previewIsRunning; private EasyCamera camera; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mSurfaceView = (SurfaceView) findViewById(R.id.surface); previewHolder = mSurfaceView.getHolder(); previewHolder.addCallback(new SurfaceHolder.Callback() { public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { if (!previewIsRunning && (camera != null)) { try { camera.startPreview(holder); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } previewIsRunning = true; } } public void surfaceCreated(SurfaceHolder holder) { camera = DefaultEasyCamera.open(CameraInfo.CAMERA_FACING_FRONT); } public void surfaceDestroyed(SurfaceHolder holder) { camera.close(); camera = null; } }); }
}
The text was updated successfully, but these errors were encountered:
You mean, the preview is stuck? What is your phone model, and is that reproducible on another device?
Sorry, something went wrong.
Hi, can you elaborate please? Did you manage to resolve to problem?
I'm closing the issue due to lack of more details. Feel free to reopen it when you are available.
No branches or pull requests
After i open easycamera class, i get preview of the camera but camera is freezing.
public class MakePhotoActivity extends Activity {
}
The text was updated successfully, but these errors were encountered: