Top "Surfaceholder" questions

Abstract interface to someone holding a display surface.

Android Camera will not work. startPreview fails

I'm getting these errors from LogCat: 10-30 00:31:51.494: D/CameraHal(1205): CameraHal setOverlay/1/00000000/00000000 10-30 00:31:51.494: E/CameraHal(1205): Trying to set overlay, but overlay …

java android surfaceview android-camera surfaceholder
How to attach MediaPlayer with SurfaceView in android?

I'm building video player with android media player object. i'm able to hear the audio but the video does not …

android media-player surfaceview surfaceholder
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
SurfaceHolder.setType is deprecated... But required?

void android.view.SurfaceHolder.setType(int type) public abstract void setType (int type) Since: API Level 1 This method is deprecated. …

android surfaceholder
java.io.IOException: setDataSource failed.: status=0x80000000

I am trying to play url using media player in activity using: mediaPlayer = MediaPlayer.create(getApplicationContext(), Uri.parse("http://www.…

android media-player live-wallpaper surfaceholder
SurfaceHolder.lockCanvas() Returning null

I'm making a game, and since I'm new to Android, I based the design off of the example LunarLander code. …

android surfaceholder
Get RGB from a SurfaceView displaying Live camera

I am displaying a live camera in SurfaceView using camera.startPreview();. Any idea on how I can get live RGB …

android colors camera rgb surfaceholder
Android Camera - app passed NULL surface

Whenever I run the cam_thread I get the error "app passed NULL surface". This code supposedly works on the …

android camera surfaceview robot surfaceholder
SurfaceView Example

So I've spent about two days trying to get a working SurfaceView. Tutorials I am following online aren't working even …

java android canvas surfaceview surfaceholder
"The surface has been released" inside "surfaceCreated"

I know this is a common question, however this stack trace shows something else is wrong. You can see that …

android android-mediaplayer surfaceholder