surfaceholder Questions

3

Solved

I'm building video player with android media player object. i'm able to hear the audio but the video does not appear on surfaceView. here is my code public class PlayerActivity extends Activity i...
Paramagnet asked 22/5, 2013 at 20:0

4

Solved

I'm trying to create a 2D game engine for an Android app. I've followed this tutorial, which works fine for creating a full screen display, but I don't want that. I want to make my view take the to...
Cari asked 7/8, 2012 at 20:6

2

I am trying to open the camera hardware on a SurfaceView. In the layout, I created a SurfaceView and I open the camera as shown in the code below. When I run the code, the toast in the CameraAvaila...

2

Solved

So I've spent about two days trying to get a working SurfaceView. Tutorials I am following online aren't working even when followed to the letter. I normally get an entirely black screen. In order ...
Komsa asked 22/11, 2017 at 10:51

1

Solved

I have similar code to many examples floating around the net: mSurfaceHolder = mVideoSurface.getHolder(); mSurfaceHolder.addCallback(this); mSurfaceHolder.setFormat(PixelFormat.TRANSPARENT); mSurf...
Padilla asked 30/6, 2016 at 8:50

7

Solved

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 is n...
Aegean asked 29/10, 2011 at 23:38

3

Whenever I run the cam_thread I get the error "app passed NULL surface". This code supposedly works on the HTC Incredible 1. I've reconfigured it slightly to run on a droid x. However I still get t...
Colligan asked 23/8, 2012 at 18:57

1

Solved

I've found several questions on this but no answers so here's hoping someone might have some insight. When I try to swap the camera I call the swapCamera function below. However the camera preview ...
Zeeland asked 19/5, 2015 at 21:16

3

Solved

I am displaying a live camera in SurfaceView using camera.startPreview();. Any idea on how I can get live RGB readings from the camera? Thanks
Consignor asked 10/4, 2013 at 6:5

2

Solved

I know this is a common question, however this stack trace shows something else is wrong. You can see that even though setDisplay(holder) is called inside of surfaceCreated it still throws IllegalA...
Delores asked 26/8, 2013 at 19:46

1

Live Wallpaper crashes, code below public void render(){ Canvas canvas = null; try{ canvas = this._surfaceHolder.lockCanvas(null); synchronized (this._surfaceHolder) { this.onDraw(canvas...
Chinfest asked 7/6, 2012 at 19:19

1

Solved

I am trying to play url using media player in activity using: mediaPlayer = MediaPlayer.create(getApplicationContext(), Uri.parse("http://www.pocketjourney.com/downloads/pj/video/famous.3gp"), hol...
Signac asked 31/10, 2012 at 11:35

2

Solved

I am building a paint application for android. Extending the FingerPaint application sample provided with the SDK. However, unlike FingerPaint, I'm using SurfaceView with a separate rendering threa...

1

Solved

void android.view.SurfaceHolder.setType(int type) public abstract void setType (int type) Since: API Level 1 This method is deprecated. this is ignored, this value is set automatically wh...
Turtledove asked 24/2, 2012 at 22:52

1

I would like to ask about a problem that has been addressed here once or twice, but none of information I found could help me overcome the problem I faced a few days ago. I want to make a live wal...
Nuncio asked 4/3, 2011 at 7:10

2

Solved

I'm making a game, and since I'm new to Android, I based the design off of the example LunarLander code. In its design, GameThread.doStart() is called from GameActivity, and the thread then runs ev...
Henrieta asked 3/8, 2011 at 3:47

1

Solved

I'm using a SurfaceView with a SurfaceHolder to start off with a camera preview in my test app. public class TextLocatorActivity extends Activity { private Preview pvw; @Override public void...
Prosecute asked 13/6, 2011 at 21:27
1

© 2022 - 2025 — McMap. All rights reserved.