Preventing Screen Blackout/Flicker

This setting prevents the device's screen from blacking out or flickering when a video starts.

In some cases, the screen of your device might simply black out. This is not due to the SDK itself but rather the underlying Android system and is perhaps due to a change to the SurfaceView.

To prevent a blackout or flicker on the device, add the following XML to the first layout activity of your application:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android=""
    android:layout_height="fill_parent" >

    <SurfaceView android:layout_width="0dp" android:layout_height="0dp"/>
    . your first layout here

해당 내용이 도움 되었습니까?