QuickDemo

Additional

Language
Kotlin
Version
N/A
Created
Nov 14, 2016
Updated
Nov 28, 2018
Owner
PSPDFKit Labs (PSPDFKit-labs)
Contributors
David Schreiber-Ranner (davidschreiber)
Peter Steinberger (steipete)
dvdmunckhof
lyricsboy
meleyal
5
Activity
Badge
Generate
Download
Source code
APK file

Promotion

QuickDemo

QuickDemo is a Nougat 7.0 quick settings tile for fast access to the Marshmallow 6.0 System UI demo mode. The app also provides a configuration activity for customizing available demo mode settings.

Release blog post: https://pspdfkit.com/blog/2016/clean-statusbar-with-systemui-and-quickdemo/

Requirements

  • Android SDK (API 25)
  • Android Studio 2.2+
  • adb (for installing the app and granting the required permissions)
  • Android emulator or devices running Marshmallow (API 23+)

Building

To build and run the app, you can open the project with Android Studio and press Run. Alternatively you can install the app from the command line.

git clone git@github.com:PSPDFKit-labs/QuickDemo.git
cd QuickDemo/
./gradlew installDebug

Setup

With Gradle

If you cloned the project, you can run setupDemoMode gradle task to do the setup.

This can be done either by finding and selecting setupDemoMode in Gradle window in Android Studio, or by running the following:

./gradlew setupDemoMode

Manually via adb

  1. When launching the app for the first time you need to grant the android.permission.DUMP permission, which is required to control the System UI demo mode. You need to do this using adb.
adb shell pm grant com.pspdfkit.labs.quickdemo android.permission.DUMP
  1. Since the System UI tuner (and its demo mode) is an experimental Android feature, you need to activate it globally.
adb shell settings put global sysui_demo_allowed 1

Usage

  1. The app comes with a quick settings tile which you can use to quickly toggle the demo mode.

    1. Completely open the status bar drawer, expanding all quick setting tiles.
    2. Press the edit button on top of the drawer, to show the quick setting tiles picker.
    3. Drag the QuickDemo tile to your desired position.
    4. Exit edit mode, and tap the tile.
  2. You can launch QuickDemo activity to configure all displayed icons of the demo mode.

    1. You can find the activity in your app launcher.

Feedback and contribution

Since this project is open source, feel free to use it, give feedback, or contribute in any way you find suitable.

About

This project is maintained and funded by PSPDFKit.

See our other open source projects, read our blog or say hello on Twitter (@PSPDFKit).