Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

Writing a System UI demo mode quick settings ti...

Writing a System UI demo mode quick settings tile in Kotlin

"Writing a System UI demo mode quick settings tile in Kotlin" @ Android Heads / Google Vienna
From: November 2016
Blog post: https://pspdfkit.com/blog/2016/clean-statusbar-with-systemui-and-quickdemo/

David Schreiber-Ranner

November 09, 2016
Tweet

More Decks by David Schreiber-Ranner

Other Decks in Programming

Transcript

  1. Writing a System UI demo mode quick settings tile in

    Kotlin David Schreiber-Ranner / PSPDFKit © David Schreiber-Ranner 2016 / pdfviewer.io / @flashmasterdash 1
  2. Demo mode Mocks status bar content since Android 6.0 Great

    for taking clean screenshots App: Clean Status Bar1 since API 15 1 https://github.com/emmaguy/clean-status-bar © David Schreiber-Ranner 2016 / pdfviewer.io / @flashmasterdash 2
  3. Quick settings Current look & feel since Android 5.0. Customizable

    tiles since Android 6.0. Part of the Android framework since 7.0 (API 24) © David Schreiber-Ranner 2016 / pdfviewer.io / @flashmasterdash 5
  4. How does this work? System UI demo mode Listens for

    broadcast intents Control using debug bridge adb am broadcast -a com.android.systemui.demo ... Control via app Requires android.permission.DUMP © David Schreiber-Ranner 2016 / pdfviewer.io / @flashmasterdash 8