Android adding SurfaceView causes black flash

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

Locked
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Android adding SurfaceView causes black flash

Post by monte » Wed Oct 23, 2013 2:22 am

Hi

I'm getting this issue in my implementation of mergAVCam (camera control):
http://stackoverflow.com/questions/8772 ... ck-on-load

The answer suggests adding a 0x0px SurfaceView to the ViewGroup when it's created will resolve the issue. Any thoughts?

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1207
Joined: Thu Apr 11, 2013 11:27 am

Re: Android adding SurfaceView causes black flash

Post by LCMark » Fri Oct 25, 2013 9:48 pm

@monte: Seems a reasonable thing to try - the empty SurfaceView could be created on creation of the Engine object, when the main view is created. Have you tried and see if it works?

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Android adding SurfaceView causes black flash

Post by monte » Mon Oct 28, 2013 3:35 am

Have you tried and see if it works?
I haven't yet.. thought I'd see what you thought first. I'll give it a go and if it works send a pull request.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Locked

Return to “Engine Contributors”