My code :
s_activity.runOnUiThread(new Runnable()
{
@Override
public void run()
{
//hide nub
View view = s_activity.getWindow().getDecorView().findViewById(android.R.id.content).getRootView();
view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
}
});
I use this code to hide the nub bar while playing the game. But it only works with devices: KF 1, 2. As for KF 3, the nub bar is not really hidden. It's just hidden in 1 second. Then nub bar will show if there is no interaction with the screen. So how to nub bar does not show while my application is running??