title: Removing Android navigation and topbar,
body: <p>I am trying to implement a Kiosk app on a rooted android device, and I need to disable the navigation and status bar completely.</p>
  
  <p>These commands works from adb shell</p>
  
  <p>Disable: </p>
  
  <pre><code>service call activity 42 s16 com.android.systemui
  </code></pre>
  
  <p>Enable: </p>
  
  <pre><code>am startservice -n com.android.systemui/.SystemUIService
  </code></pre>
  
  <p>That's good! Now I need to be able to do it from my app. So to disable I've tried: </p>
  
  <pre><code>Process process = Runtime.getRuntime().exec("su service call activity 42 s16 com.android.systemui");
  </code></pre>
  
  <p>when pressing a button in my activity. But nothing happens, and no exceptions are thrown. A toast pops up though, saying that the app has been given super user rights. </p>
  
  <p>Any ideas?</p>