We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi guys, Im using APDE during long time to create sketches for little programs. I try to create my own program with android face. Well my first problem was using the keyboard but i fixed it, but now i have problem to display StatusBar :/
I know i can do it by using this method :
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
The problem is ... for APDE getWindow() is an undefined method. OK i know i need to change something in androidManifest.xml to display the Fullscreen to use this method, but anyways for APDE getWindow() is an undefined method.
THX for any helps !
Answers
This post is relevant as it shows how to access the window object. Please remember to include relevant imports. I hope this helps,
https://forum.processing.org/two/discussion/comment/68228/#Comment_68228
Kf
OK guys, (thx MUUUUUCH !!! kfrajer) i search long time ago to solve this problem and now it work ! Well this is the basic program to display StatusBar in APDE :
import android.app.Activity; import android.view.WindowManager; import android.view.View; import android.os.*; Activity act; View decorView; int uiOptions; @ Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); act = this.getActivity(); uiOptions = View.SYSTEM_UI_FLAG_VISIBLE; decorView = act.getWindow().getDecorView(); act.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); decorView.setSystemUiVisibility(uiOptions); } void setup() { size(displayWidth, displayHeight); } public void draw(){ // Your code }