package fi.haippirinki.l2p;

public class MainActivity extends android.app.NativeActivity {
}

package fi.haippirinki.l2p;

import android.os.Build;
import android.view.View;

public class MainActivity extends android.app.NativeActivity {
	protected void onCreate(android.os.Bundle savedInstanceState) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            getWindow().getDecorView().setSystemUiVisibility(
                View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
                View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
                View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
                View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
                View.SYSTEM_UI_FLAG_FULLSCREEN |
                View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
        }

        super.onCreate(savedInstanceState);
    }
}

Set fullscreen flags if on api 19 or newer.
Set fullscreen flags if on api 19 or newer.
