# Navigation bar issue

**URL:** <https://discourse.processing.org/t/navigation-bar-issue/43802>\
**Category:** Processing for Android\
**Created:** [January 31, 2024, 10:55am UTC](https://discourse.processing.org/t/navigation-bar-issue/43802 "2024-01-31T10:55:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AniManOtaku](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/animanotaku/32/18733_2.png) [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Post date:** [January 31, 2024, 10:55am UTC](https://discourse.processing.org/t/navigation-bar-issue/43802/1 "2024-01-31T10:55:58Z")

</div>

I came across a bug because of which the navigation bar is not hidden after you open and close the keyboard or if a notification about phone discharge arrives.

 ![Screenshot_2024-01-31-12-46-00-225_processing.test.sketch_20240131a](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/2/e/2e57c9cf36be6e0c91a20d4d73c5f18143d2abfe.png)  
 ![Screenshot_2024-01-31-12-46-06-115_processing.test.sketch_20240131a](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/9/c/9cf6b55c274a118bacb9f781b53974b08f790743.jpeg)  
 ![Screenshot_2024-01-31-12-46-10-032_processing.test.sketch_20240131a](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/d/6deb04cfb250fcdde2e4bdcc9452d62a16599041.png)  
if there is a way to fix it or if not how to make the app not full screen and change the color of the navigation bar?

---

<div class="post-metadata">

**Author:** ![AniManOtaku](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/animanotaku/32/18733_2.png) [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Post date:** [January 31, 2024, 8:41pm UTC](https://discourse.processing.org/t/navigation-bar-issue/43802/3 "2024-01-31T20:41:15Z")

</div>

I don’t think it’s going to help anything.

boolean keyboardOpen=false;

void setup(){

}

void draw(){  
background(100,150,255);  
textSize(50);  
fill(255);  
textAlign(CENTER,CENTER);  
text(“testing”,width/2,height/2);  
stroke(255);  
strokeWeight(2);  
noFill();  
rectMode(CENTER);  
rect(width/2,height/2,width,1280);  
}

void touchStarted(){  
if(touches[0].y\<720)  
if(!keyboardOpen)  
openKeyboard();  
else  
closeKeyboard();  
}

---

<div class="post-metadata">

**Author:** ![JeemzzFancier](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeemzzfancier/32/19144_2.png) [@JeemzzFancier](https://discourse.processing.org/u/JeemzzFancier)\
**Post date:** [February 2, 2024, 3:06am UTC](https://discourse.processing.org/t/navigation-bar-issue/43802/4 "2024-02-02T03:06:20Z")

</div>

You may try fullScreen() or have a look in ‘sketch properties’ options. But it isnt a real full screen in Android actually.

---

<div class="post-metadata">

**Author:** ![AniManOtaku](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/animanotaku/32/18733_2.png) [@AniManOtaku](https://discourse.processing.org/u/AniManOtaku)\
**Post date:** [February 9, 2024, 3:03pm UTC](https://discourse.processing.org/t/navigation-bar-issue/43802/5 "2024-02-09T15:03:36Z")

</div>

I was able to find a solution to make full screen mode work properly.

```auto
import android.app.Activity;
import android.os.Bundle;
import android.view.WindowManager;
import android.view.Window;

public class MainActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(
        WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.main);
    }
}

boolean keyboardOpen=false;

void setup(){
}

void draw(){
  background(255);
}

void touchStarted(){
  if(mouseY<height*0.5f){
    if(!keyboardOpen)
    openKeyboard();
    else
    closeKeyboard();
    keyboardOpen=!keyboardOpen;
  }
}

```

But unfortunately I still don’t know how to change the color of the navigation bar.
