All Projects → noln → System Alert Window Example

noln / System Alert Window Example

Example project showing use of SYSTEM_ALERT_WINDOW permission on Android 23+, with back button interception.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to System Alert Window Example

FloatingView
FloatingView moved by finger supporting OverlaySystem, OverlayActivity, OverlayViewGroup modes
Stars: ✭ 58 (+48.72%)
Mutual labels:  touch, android-development, android-ui
Android Arsenal.com
Source to android-arsenal.herokuapp.com
Stars: ✭ 541 (+1287.18%)
Mutual labels:  android-development, android-ui
Androidkex
Extensions for Kotlin. Use the power of Kotlin to make your code smaller and beautiful.
Stars: ✭ 35 (-10.26%)
Mutual labels:  android-development, android-ui
Zoomrecylerlayout
🎢 Zoom Recycler Layout Manager For Android Kotlin
Stars: ✭ 618 (+1484.62%)
Mutual labels:  android-development, android-ui
Musicindicator
Music indicator for Android. Easy to use. 🎧 ✨
Stars: ✭ 475 (+1117.95%)
Mutual labels:  android-development, android-ui
Android Ecosystem Cheat Sheet
🤖Android Ecosystem Cheatsheet 2020
Stars: ✭ 488 (+1151.28%)
Mutual labels:  android-development, android-ui
Alerter
An Android Alerting Library
Stars: ✭ 5,213 (+13266.67%)
Mutual labels:  android-development, android-ui
Awesome Android Ui
😎 A curated list of awesome Android UI/UX libraries
Stars: ✭ 353 (+805.13%)
Mutual labels:  android-development, android-ui
Music Player Go
🎶🎼 Very slim music player 👨‍🎤 100% made in Italy 🍕🌳🌞🍝🌄
Stars: ✭ 654 (+1576.92%)
Mutual labels:  android-development, android-ui
Motiontoast
🌈 A Beautiful Motion Toast Library for Kotlin Android
Stars: ✭ 767 (+1866.67%)
Mutual labels:  android-development, android-ui
Slidetoact
A simple 'Slide to Unlock' Material widget for Android, written in Kotlin 📱🎨🦄
Stars: ✭ 783 (+1907.69%)
Mutual labels:  android-development, android-ui
Drawer Behavior
Drawer behavior is a library that provide an extra behavior on drawer, such as, move view or scaling view's height while drawer on slide.
Stars: ✭ 394 (+910.26%)
Mutual labels:  android-development, android-ui
Pudding
🌟 Pudding use WindowManager(don't need request permission) to pull down a view that are displayed on top their attached window
Stars: ✭ 371 (+851.28%)
Mutual labels:  android-ui, alert
Cookiebar2
Android library for displaying text messages, notifications and alerts at the top or bottom of the screen. A great alternative for toast and snackbar alerts.
Stars: ✭ 499 (+1179.49%)
Mutual labels:  android-development, android-ui
Themed Toggle Button Group
Customisable toggle buttons inside a FlexboxLayout.
Stars: ✭ 357 (+815.38%)
Mutual labels:  android-development, android-ui
Superbottomsheet
Android native BottomSheet on steroids 💪
Stars: ✭ 548 (+1305.13%)
Mutual labels:  android-development, android-ui
Android Customtoast
Easy to use Custom Toast Library for Android
Stars: ✭ 24 (-38.46%)
Mutual labels:  android-development, android-ui
Expenso
📊 A Minimal Expense Tracker App built to demonstrate the use of modern android architecture component with MVVM Architecture
Stars: ✭ 325 (+733.33%)
Mutual labels:  android-development, android-ui
Fastadapter
The bullet proof, fast and easy to use adapter library, which minimizes developing time to a fraction...
Stars: ✭ 3,512 (+8905.13%)
Mutual labels:  android-development, android-ui
Discretescrollview
A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.
Stars: ✭ 5,533 (+14087.18%)
Mutual labels:  android-development, android-ui

22/09/2019 - There's now a Kotlin version of this project.

system-alert-window-example

Example project showing use of SYSTEM_ALERT_WINDOW permission on Android 23+, with back button interception.

!!!IMPORTANT UPDATE!!! [2019-05-08] We all SAW it coming (pun intended), but the Android team have finally given us an idea of where the out-of-app UI interaction that system-alert-window enabled is going. Confirmed at Google IO 2019: it's going away. Part of the flakily-recorded "Whats New In Android" talk mentions it here.

  • On first launch, the app will check that it has permission to draw over other apps, and will show the user the corresponding prompt if not.
  • Once permission is granted, opening the app starts a service that inflates a layout and adds it to the screen as an overlay.

Note: This screenshot shows the example app drawing over the top of another running app: motorsport-circuits. So don't expect a map to appear when you run the example code! You just get the green box and bugdroid.

  • If any other app is running when the the app launches, they will lose focus, but onPause will not be called - the app behaves as a system alert, as the title suggests.

  • It's deliberately translucent and not full screen so that other apps can be seen running in the background, but you can make the app run full window by modifying the layout XML, and making the background colour opaque.

  • KeyEvent interception is shown on the back button; if you try to press the back button whilst the alert is shown, it'll be intecepted and a message shown in the logs.

  • Touches are intercepted whilst the alert/app is shown, even though other apps might be visible in the background they can't be interacted with.

  • Touch the View itself to close and kill the Service.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].