[Android] cannot hide status bar

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
loustak
Prole
Posts: 2
Joined: Thu Jun 01, 2017 7:47 am

[Android] cannot hide status bar

Post by loustak »

Hello,

I'm trying to hide the status bar on Android. Here is my Manifest:

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest package="com.loustak.cadence"
      android:versionCode="1"
      android:versionName="1.0.0"
      android:installLocation="auto" xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="18"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="18"/>
    <uses-feature android:glEsVersion="0x00020000"/>
    <application
        android:allowBackup="true"
        android:icon="@drawable/love"
        android:label="Cadence"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    >
        <activity
            android:configChanges="orientation|screenSize"
            android:label="Cadence"
            android:launchMode="singleTop"
            android:name="org.love2d.android.GameActivity"
            android:screenOrientation="portrait"
        >
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
                <category android:name="tv.ouya.intent.category.GAME"/>
            </intent-filter>
        </activity>
    </application>
</manifest>
It currently doesn't work and still display the status bar. I have read on the Android documentation that the method to hide the status bar changed between Android 4.0 and upper. (source: https://developer.android.com/training/system-ui/status)

Any idea how to solve this problem? Thanks for help.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 46 guests