Writing a System UI demo mode quick settings tile in Kotlin

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/

0f2667c07da9aeda7231646073473d5a?s=128

David Schreiber-Ranner

November 09, 2016
Tweet

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. Hard to access © David Schreiber-Ranner 2016 / pdfviewer.io /

    @flashmasterdash 3
  4. Not customizable © David Schreiber-Ranner 2016 / pdfviewer.io / @flashmasterdash

    4
  5. 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
  6. Solution Quick Demo Tile © David Schreiber-Ranner 2016 / pdfviewer.io

    / @flashmasterdash 6
  7. Live demo © David Schreiber-Ranner 2016 / pdfviewer.io / @flashmasterdash

    7
  8. 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
  9. Lets see some code! © David Schreiber-Ranner 2016 / pdfviewer.io

    / @flashmasterdash 9
  10. Questions? © David Schreiber-Ranner 2016 / pdfviewer.io / @flashmasterdash 10