Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7576809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:00:46+00:00 2026-05-30T17:00:46+00:00

I developed my app using Mono for Android. I have the latest version 4.0.3.

  • 0

I developed my app using Mono for Android. I have the latest version 4.0.3. My AndroidManifest.xml specifies:

<uses-sdk android:targetSdkVersion="11" android:minSdkVersion="8" />

The app runs on tablets, so in Honeycomb I need to hide the status bar at the bottom of the screen. This is how I do that (with a simple extension method):

internal static void LightsOut(this View view)
        {
            try
            {
                IntPtr view_setSystemUiVisibility = JNIEnv.GetMethodID(view.Class.Handle, "setSystemUiVisibility", "(I)V");
                JNIEnv.CallVoidMethod(view.Handle, view_setSystemUiVisibility, new JValue(1));
            }
            catch 
            { }
        }

I call this on every view that I instantiate. On my Motorola Xoom, running 3.0.1, this works great.

On my Samsung Galaxy Tab running 3.1, it works; but the status bar comes back after some short period of time. In the Android Log I see that LightsOn() is getting called…

How can I prevent the status bar from coming back in 3.1? I saw this event:

http://developer.android.com/reference/android/view/View.OnSystemUiVisibilityChangeListener.html

And thought I could use it to hide the status bar, if it comes back. But I don’t see how I can subscribe to it (it doesn’t show in Intellisense).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:00:48+00:00Added an answer on May 30, 2026 at 5:00 pm

    Does something specific happen before the status bar comes back, or is it solely time related? A quick search of the ICS source suggests that the status bar status will be reset when the top App Window changes. Are you calling StartActivity() or moving to another app when you see this behavior?

    The View.OnSystemUiVisibilityChangeListener interface has been bound as the View.IOnSystemUiVisibilityChangeListener interface and through the View.SystemUiVisibilityChange event. However, both of these mechanisms require that your $(TargetFrameworkVersion) target Android v3.1 or later, which would set your //uses-sdk/@android:minSdkVersion attribute to 12, and is thus something you (presumably) don’t want to do.

    I see two plausible solutions here:

    1. Figure out why LightsOn() is being invoked and try to work around it (call LightsOut() within every Activity.OnCreate() method?).
    2. Provide two versions of your app, one with a minSdkVersion of 8, and one of (at least) 12, and then use Multiple APK Support to include both in your program. The device will then run the appropriate package, permitting access to the View.SystemUiVisibilityChange event.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an app using android 2.2, I want to downgrade it to
I am developing Android Web App using JSP with xml parsing. I developed it
I have developed my app using core data. It works fine in the simulator.
I've developed an app using the 3.1.3 SDK and I want to set the
I have developed a web app using a webservice. Everything works fine in the
I have developed an iPhone app using an iPhone 3G. How can I test
I have developed a simple DB-editing app using Xceed's excellent DataGrid for WPF (UX
I have an ios5 app developed using storyboards that currently displays a tab bar
I have developed an iPhone app using Monotouch and am about to do some
We have a popular web-app developed using CodeIgniter. Now we want to expose our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.