I had an application with full screen, but when I display a popup window I lost the full screen behaviour, I cheek my application only in popup that I lost full screen,
this is my method of full screen :
public void call(Activity activity) {
if(Build.VERSION.SDK_INT > 11 && Build.VERSION.SDK_INT < 19) { // lower api
View v = activity.getWindow().getDecorView();
v.setSystemUiVisibility(View.GONE);
} else if(Build.VERSION.SDK_INT >= 19) {
//for new api versions.
View decorView = activity.getWindow().getDecorView();
int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
decorView.setSystemUiVisibility(uiOptions);
}
}
I google it and I found in this post "only has effect when the view you call it from is visible"
So there's a solution ?