Top "Surfaceview" questions

SurfaceView is a widget on the Android platform which provides a dedicated drawing surface.

How to show the camera preview on a SurfaceView?

I am trying to open the camera hardware on a SurfaceView. In the layout, I created a SurfaceView and I …

android camera android-camera surfaceview surfaceholder
How to make SurfaceView with transparent background?

I have simple layout <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/…

android surfaceview
When does surfaceDestroyed() occur

I'm having trouble figuring out when surfaceDestroyed() occurs. I am trying to make my threads stop running in the surfaceDestroyed() …

android surfaceview
How to capture image from custom CameraView in Android?

i need to capture image from required portion of the screen. capture image from camera. at that time other screen …

android android-camera surfaceview image-capture camera-view
Android: creating a Bitmap with SurfaceView content

I'm afraid to already have the unfortunate answer to this question but just in case... I'm using a SurfaceView to …

android image-processing bitmap save surfaceview
How to use camera live feed as a activity background?

I am trying to make an App in which I need to use camera live feed as a background. (I …

android background camera surfaceview live-wallpaper
surfaceCreated() Never Called

I've seen similar problems to the one I'm having, but I still can't find a solution. I'm very new to …

android camera surfaceview preview
Take a screenshot using MediaProjection

With the MediaProjection APIs available in Android L it's possible to capture the contents of the main screen (the default …

android bitmap surfaceview
Camera preview stretched even after setting the correct dimensions

I'm creating a camera app that implements it's own camera preview for taking pictures. The app is currently forced into …

android android-camera surfaceview
Take Screenshot of SurfaceView

Am developing a simple camera app. I have code that takes screenshot of the whole activity and writes it to …

android camera screenshot surfaceview