Skip to content Skip to sidebar Skip to footer
Showing posts with the label Surfaceview

Implementing Admob Banner When Setcontentview() Is Used For The Surfaceview

I am struggling to implement an admob banner into my app because the setContentView() method is use… Read more Implementing Admob Banner When Setcontentview() Is Used For The Surfaceview

Using Mysurfaceview With Main.xml (android)

i have a simple program on android which is drawing on user touch. here's main activity: public… Read more Using Mysurfaceview With Main.xml (android)

How To Reconcile Difference In Aspect Ratio Between Camera Preview Size And Picture Size

I've got a camera app that selects a preview size based on characteristics of my layout (primar… Read more How To Reconcile Difference In Aspect Ratio Between Camera Preview Size And Picture Size

Android: How Get Error Of Media Player And Use It?

I use SurfaceView for video player If in stream not load video , in logcat view error info(701,0) H… Read more Android: How Get Error Of Media Player And Use It?

Surfaceview Overlaps Another Surfaceview On Android 8.0

I'm facing some strange issue with my app on Android 8.0. I have my own scrollable widget, code… Read more Surfaceview Overlaps Another Surfaceview On Android 8.0

Android: Implement Admob On Surfaceview

I have an activity in form of a small game which uses SurfaceView. Below are the code snippets.. I … Read more Android: Implement Admob On Surfaceview

Getting Image Data Continuously From Camera, Surfaceview Or Surfaceholder

So I have this camera preview set up with Camera, SurfaceView and SurfaceHolder. I have also an Ima… Read more Getting Image Data Continuously From Camera, Surfaceview Or Surfaceholder

Touch Events And Gestures In Surface View

Can anybody point me to some classes or suggest anything for the following case? I have SurfaceView… Read more Touch Events And Gestures In Surface View

Open Camera In A Blank Surfaceview

I am very new to android programming and All I want to do is open camera app in surface view so tha… Read more Open Camera In A Blank Surfaceview

Android Surfaceview Ontouchevent Not Getting Called

I'm developing a game using SurfaceView which listens to touch events. The onTouchEvent method … Read more Android Surfaceview Ontouchevent Not Getting Called

Best Way To Draw An Image Dynamically

I'm creating an android app that has to draw a map of an ambient that i have explored with lase… Read more Best Way To Draw An Image Dynamically

Difference Between Surfaceview And Glsurfaceview In Android

Can anyone tell me what the basic difference is between SurfaceView and GLSurfaceView? When should … Read more Difference Between Surfaceview And Glsurfaceview In Android

Android Surfaceview Threads And Memory Leaks

Im creating a game in android, and i noticed that the game has a memory leak. Iv managed to isolate… Read more Android Surfaceview Threads And Memory Leaks

Is It Necessary To Use A Separate Thread When Using Surfaceview?

In Android, I am using a SurfaceView. It is inside a FrameLayout, to draw a couple of things on a t… Read more Is It Necessary To Use A Separate Thread When Using Surfaceview?

What Is The Use Of Calling Surfaceholder.setfixedsize()?

I have similar code to many examples floating around the net: mSurfaceHolder = mVideoSurface.getHol… Read more What Is The Use Of Calling Surfaceholder.setfixedsize()?

Fitting A Camera Preview To A Surfaceview Larger Than The Display

I have an Android application that needs to fullscreen a camera preview regardless of the preview s… Read more Fitting A Camera Preview To A Surfaceview Larger Than The Display

The Surface Has Been Released When I Try To Setdisplay To Mediaplayer

My xml file: M Solution 1: The Surface can be destroyed. That's why you need to add to the a… Read more The Surface Has Been Released When I Try To Setdisplay To Mediaplayer

How To Draw Image On Surfaceview Android

i want to add image on surfaceview and make it as clickable. I could do it via xml using layout. Bu… Read more How To Draw Image On Surfaceview Android

How To Get A Surfaceholder With A Valid Surface (needed By Egl.eglcreatewindowsurface)?

I try to initialize GLES with EGL (because I want to draw from the main thread instead of using a R… Read more How To Get A Surfaceholder With A Valid Surface (needed By Egl.eglcreatewindowsurface)?

Button On Top Of Surfaceview With Setzorderontop Set To True In Android

I have two surfaceviews in an app and one surfaceview needs to overlap the other surfaceview. For e… Read more Button On Top Of Surfaceview With Setzorderontop Set To True In Android