1

How to hide System Bar and show the System Bar in android(4.1.1)

view story
linux-howto

http://stackoverflow.com – I need to show and hide the system bar in my application,hence I used two buttons for that. I used to test for both Android(3.0.1) and Android(4.1.1) devices. For android(3.0.1), I am able to hide and show the system bar as per my requirement. But In Android(4.1.1), Buttons are not working to hide and show the system bar. and my code is // Showing system bar showSystemBarBtn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { try { Process proc = Runtime.getRuntime().exec(new String[]{"am","startservice","-n","com.android.sy (HowTos)