[android-developers] lights out mode PLUS menu soft key?

2011-11-07 Thread thedude
I am trying to add lights out mode to my game, but cannot get it to coexist with the menu soft key, which I still need to be accessible. To elaborate, setSystemUiVisibility(View.STATUS_BAR_HIDDEN) seems to have no effect unless I also target sdk version 11 in my AndroidManifest (uses-sdk

[android-developers] Re: version-specific attributes in AndroidManifest.xml

2011-08-03 Thread thedude
Thanks - that worked! On Jul 22, 3:36 pm, nadam a...@anyro.se wrote: I don't think there is any way to do that in the manifest. However, you can remove android:screenOrientationfrom the manifest and set it in the activity's onCreate() method instead: if (Build.VERSION.SDK_INT

[android-developers] version-specific attributes in AndroidManifest.xml

2011-07-20 Thread thedude
Is there a way to have different valued attributes in the manifest, depending on platform version? For example, for 2.3 and above, I would like to specify: android:screenOrientation=sensorLandscape For 2.2 and below, I would like to specify android:screenOrientation=landscape I want to use a