Plein écran impossible Android 3.0, fonctionne sous Android 2.3
Bonjour,
Mon application doit s'afficher en plein écran, pas de titre ni de barre d'état.
Je fais ainsi :
Dans le Oncreate
Code:
1 2 3
| this.requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN); |
et dans le manifest :
Code:
1 2 3 4
| <activity android:name="com.charlytest.parsexml.monActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> |
Cela marche parfaitement sur Android 2.3 mais sous 3.0 la barre d'état est toujours présente.
Savez-vous comment la cacher?
Merci,