Buggy code:
public class MainActivity extends ActionBarActivity { static final String LOG_ID = "wbt" ; private static final float EXPECTED_DENSITY = 315.0F ; private static final float EXPECTED_WIDTH_PIX = 720.0F ; int TS_NORMAL ; int TS_BIG ; Screen entryScreen ; PlayScreen playScreen ; Screen currentScreen ; MainActivity . FullScreenView mainView ; Typeface gamefont ; float sizescalefactor ; public SoundPool soundpool = null ; Map < Sound , Integer > soundMap = null ; DisplayMetrics metrics ; @ Override protected void onCreate ( Bundle savedInstanceState ) { try { <START_BUG> requestWindowFeature ( FEATURE_NO_TITLE ) ; <END_BUG> getWindow ( ) . setFlags ( FLAG_FULLSCREEN , FLAG_FULLSCREEN ) ; super . onCreate ( savedInstanceState ) ; metrics = new DisplayMetrics ( ) ; getWindowManager ( ) . getDefaultDisplay ( ) . getMetrics ( metrics ) ; gamefont = Typeface . createFromAsset ( getAssets ( ) , "lt.ttf" ) ; sizescalefactor = ( ( float ) ( ( metrics . widthPixels ) // ( MainActivity . EXPECTED_WIDTH_PIX ) ) ) ; Log . d ( MainActivity . LOG_ID , ( ( ( ( ( "dpi:" + ( metrics . densityDpi ) ) + "<seq2seq4repair_space>width:" ) + ( metrics . widthPixels ) ) + "<seq2seq4repair_space>scalefact:" ) + ( sizescalefactor ) ) ) ; if ( ( sizescalefactor ) > 1.5F ) sizescalefactor = 1.5F ; else if ( ( sizescalefactor ) < 0.5F ) sizescalefactor = 0.5F ; TS_NORMAL = ( ( int ) ( 38 * ( sizescalefactor ) ) ) ; TS_BIG = ( ( int ) ( 80 * ( sizescalefactor ) ) ) ; entryScreen = new EntryScreen ( this ) ; playScreen = new PlayScreen ( this ) ; mainView = new MainActivity . FullScreenView ( this ) ; setContentView ( mainView ) ; setVolumeControlStream ( STREAM_MUSIC ) ; soundpool = new SoundPool ( 20 , AudioManager . STREAM_MUSIC , 0 ) ; soundMap = new HashMap ( ) ; AssetFileDescriptor descriptor = getAssets ( ) . openFd ( "fire.mp3" ) ; soundMap . put ( FIRE , soundpool . load ( descriptor , 1 ) ) ; descriptor = getAssets ( ) . openFd ( "enemyfire.mp3" ) ; soundMap . put ( ENEMYFIRE , soundpool . load ( descriptor , 1 ) ) ; descriptor = getAssets ( ) . openFd ( "crawlding.mp3" ) ; soundMap . put ( CRAWLERMOVE , soundpool . load ( descriptor , 1 ) ) ; descriptor = getAssets ( ) . openFd ( "crawldeath.mp3" ) ; soundMap . put ( CRAWLERDEATH , soundpool . load ( descriptor , 1 ) ) ; descriptor = getAssets ( ) . openFd ( "enemydeath.mp3" ) ; soundMap . put ( ENEMYDEATH , soundpool . load ( descriptor , 1 ) ) ; descriptor = getAssets ( ) . openFd ( "levchg1.mp3" ) ; soundMap . put ( LEVCHG , soundpool . load ( descriptor , 1 ) ) ; descriptor = getAssets ( ) . openFd ( "exlife.mp3" ) ; soundMap . put ( EXLIFE , soundpool . load ( descriptor , 1 ) ) ; } catch ( Exception e ) { Log . d ( MainActivity . LOG_ID , "onCreate" , e ) ; } } public int playSound ( Sound s , float vol , float rate ) { } public int playSound ( Sound s ) { } public void stopSound ( int streamID ) { } @ Override protected void onResume ( ) { } @ Override protected void onPause ( ) { } public Typeface getGameFont ( ) { } public DisplayMetrics getDisplayMetrics ( ) { } public void startGame ( ) { } public void leaveGame ( ) { } public void exit ( ) { } private class FullScreenView extends SurfaceView implements View . OnTouchListener , Runnable { private volatile boolean isRendering = false ; Thread renderThread = null ; SurfaceHolder holder ; public FullScreenView ( Context context ) { } public void resume ( ) { } @ Override public void run ( ) { } public void pause ( ) { } public boolean onTouch ( View v , MotionEvent event ) { } } }

Fix:
supportRequestWindowFeature ( FEATURE_NO_TITLE ) ;