JG Web Designs - Aurora, IL website design, development, SEO, SMM
delivering simple, effective website solutions
630-674-9763
[email protected]
  • Home
  • About
    • What's new
    • Contact
  • Portfolio
    • Testimonials
  • Business
    • Social Media Marketing
    • Lifecycle
  • Programming Services
    • Android development tips and tricks

Hiding the Android system UI

7/2/2015

1 Comment

 
To hide/show the UI from with your app...
After a lot of searching on the internet, I managed to get the System Bar to hide and appear in a 4.2 device using the commands below
To Hide:

Runtime.getRuntime().exec("service call activity 42 s16 com.android.systemui");
Or use 79 instead of 42 for API less than 14.

To Show:

Runtime.getRuntime().exec("am startservice --user 0 -n com.android.systemui/.SystemUIService");


1 Comment
Sol link
12/6/2023 01:23:55 am

Great blog I enjoyed reading it

Reply



Leave a Reply.

    Picture

    Unless stated otherwise, everything discussed herein is related to development I've done on semi custom hardware, (Freescale-based, derived from a FS reference platform) with a rooted BSP/OS (also based on a Freescale reference build).  I have not built the BSP (nor have I ever built a BSP)

    Author

    John Goluch has been a software developer since 1989. He has developed code for a variety of embedded systems in Assembly and C, for the web in HTML/JS/PHP, and mobile devices in Qt/C++ and Android/Java.  Content here comes from "in the weeds" level of research and discovery related to Android development

    Archives

    January 2020
    July 2015

    Categories

    All

    RSS Feed

JG Web Designs | Aurora, IL 60504 | 630.674.9763 | [email protected]