[android-developers] lights out mode PLUS menu soft key?
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:minSdkVersion=8 android:targetSdkVersion=11/), which has the side effect of hiding the menu soft key. Any ideas? Thanks, Gil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] lights out mode PLUS menu soft key?
Put a menu in your UI. If you don't want it in the action bar (because you have no other need for the action bar), that's fine -- put a menu button somewhere in your UI that your users will find and use. Or don't use menus, but rather some other UI paradigm (I haven't encountered many games that use native options menus). On Mon, Nov 7, 2011 at 4:01 PM, thedude gil.car...@gmail.com wrote: 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:minSdkVersion=8 android:targetSdkVersion=11/), which has the side effect of hiding the menu soft key. Any ideas? Thanks, Gil -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Lights Out mode
I am trying (unsuccessfully thus far) to dim the system bar on Honeycomb devices. My current layout contains a single WebView. The following is called in my bundle's onCreate routine. setContentView(R.layout.main); mWebView = (WebView) findViewById(R.id.webview); if (android.os.Build.VERSION.SDK_INT = android.os.Build.VERSION_CODES.HONEYCOMB){ mWebView.setSystemUiVisibility(View.STATUS_BAR_HIDDEN); } The function is getting called, but the system bar is never dimmed. What am I missing here? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Lights Out mode
Nothing leaps to mind as being a problem. This sample project successfully goes into lights-out mode via an options menu item: https://github.com/commonsguy/cw-advandroid/tree/master/Honeycomb/FeedFragments (see lightsOut() method in AbstractFeedsFragment) Make sure your targetSdkVersion is 11 (or higher). On Tue, Jul 12, 2011 at 5:54 PM, Mark mbus...@bitwisecontrols.com wrote: I am trying (unsuccessfully thus far) to dim the system bar on Honeycomb devices. My current layout contains a single WebView. The following is called in my bundle's onCreate routine. setContentView(R.layout.main); mWebView = (WebView) findViewById(R.id.webview); if (android.os.Build.VERSION.SDK_INT = android.os.Build.VERSION_CODES.HONEYCOMB){ mWebView.setSystemUiVisibility(View.STATUS_BAR_HIDDEN); } The function is getting called, but the system bar is never dimmed. What am I missing here? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Lights Out mode
On Wed, Jul 13, 2011 at 6:54 AM, Mark mbus...@bitwisecontrols.com wrote: I am trying (unsuccessfully thus far) to dim the system bar on Honeycomb devices. My current layout contains a single WebView. The following is called in my bundle's onCreate routine. Maybe it doesn't work from onCreate()? Try calling it in onStart() or onResume(). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Lights Out mode
Yes you'll need to do this after your view hierarchy is attached to the window manager. On Tue, Jul 12, 2011 at 7:13 PM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Wed, Jul 13, 2011 at 6:54 AM, Mark mbus...@bitwisecontrols.com wrote: I am trying (unsuccessfully thus far) to dim the system bar on Honeycomb devices. My current layout contains a single WebView. The following is called in my bundle's onCreate routine. Maybe it doesn't work from onCreate()? Try calling it in onStart() or onResume(). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en