What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

To draw over other apps on Android, declare SYSTEM_ALERT_WINDOW, ask the user to enable the special access in Settings, verify it with Settings.canDrawOverlays(), then add a window using TYPE_APPLICATION_OVERLAY on Android 8.0 (API 26) and later. This access is optional, security-sensitive, and does not guarantee the window will appear above system UI or stay at an exact position.

What does “draw over other apps” mean?

An Android overlay is a window your app displays outside its own activity, over other apps’ activity windows. Android treats this as special access because a floating window can obscure or imitate parts of another app. The platform documentation cautions: “Very few apps should use this permission; these windows are intended for system-level interaction with the user.” See the Manifest.permission reference.

SYSTEM_ALERT_WINDOW is the permission associated with this capability. For apps targeting API 23 or later, listing it in the manifest does not itself grant access: the user must authorize the app through system Settings. It is not an ordinary runtime permission dialog.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I enable display over other apps?

Explain the specific feature before sending the user to Settings. The user makes the decision there; an in-app button cannot grant overlay access automatically. The Android Settings API reference documents ACTION_MANAGE_OVERLAY_PERMISSION and canDrawOverlays().

#1 Best Overall
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.
  1. Declare the permission. Add <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> to the app manifest. This declares the app’s need but does not mean a user targeting API 23 or later has authorized it.
  2. Check access before creating the window. Call Settings.canDrawOverlays(context). If it returns false, explain why the feature needs access and launch Settings.ACTION_MANAGE_OVERLAY_PERMISSION so the user can review it in system Settings.
  3. Check again after returning. The user chooses in Settings, so check Settings.canDrawOverlays(context) again when your app resumes. Do not assume that opening the management screen means permission was granted.
  4. Add the overlay only when authorized. Obtain WindowManager, create WindowManager.LayoutParams with TYPE_APPLICATION_OVERLAY, and add the view with WindowManager. This window type is tied to SYSTEM_ALERT_WINDOW in the WindowManager.LayoutParams reference.
  5. Remove it when it is no longer needed. Remove the view when the feature ends, and handle attachment failures and lifecycle changes. If access is denied or unavailable, keep unrelated app features usable and explain what the overlay-dependent feature cannot do.

The exact Settings screen and the user’s available choices can vary by Android version and device. The permission flow is a request for user authorization, not a guarantee of visibility or placement.

Which window type should I use?

For third-party alert windows on Android 8.0 (API 26) and later, use TYPE_APPLICATION_OVERLAY. Apps targeting API 26 or later must use it instead of the older alert window types covered by the Android 8.0 behavior changes. Older code examples that use legacy alert types may not be appropriate for a current target SDK.

Rank #2
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.

This guidance concerns the Android version and target SDK behavior identified in the documentation; it does not make older window types a recommended choice for new code. Check the platform references when supporting older Android releases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Where can an Android overlay appear?

TYPE_APPLICATION_OVERLAY appears above activity windows and below critical system windows, including the status bar and input method editor (IME, such as the keyboard). It is not a way to draw over every system surface or security interface.

Rank #3
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

Android may change an overlay’s position or size, or hide it, to reduce clutter and manage system resources. Build the feature to tolerate those changes rather than relying on fixed coordinates or permanent visibility. Android 8.0’s guidance also notes that users can access settings to block alert windows from the notification shade.

Why is my Android overlay permission unavailable?

Android 10 Go edition

On Android 10 Go edition, new SYSTEM_ALERT_WINDOW grants cannot be made. Settings.canDrawOverlays() always returns false, and the system directs users to a Settings screen explaining the restriction. The documented legacy exception applies when the permission was already granted before an upgrade from Android 9 or lower. See the Android Android 10 behavior changes.

Rank #4
Sale
Samsung Galaxy S26 Ultra, Unlocked Android Smartphone, 512GB, Black
  • PRIVACY DISPLAY: Automatically hide your screen from those beside you. The built-in privacy display can be preset¹ to turn on when receiving notifications, typing passwords, or using specific apps
  • TYPE IT IN. TRANSFORM IT FAST: Enhance any shot in seconds on your smartphone by using Photo Assist² with Galaxy AI.³ Add objects, restore details, or apply new styles by simply typing or tapping
  • NIGHTS, CAPTURED CLEARLY: From gigs to city lights, record and capture moments after dark with clarity using Nightography so your photos and videos stay crisp and clear on your Samsung Galaxy
  • MAKE IT. EDIT IT. SHARE IT: Turn everyday moments into something personal with creative tools built right into your mobile phone, whether it’s a special contact photo, custom wallpaper, an invitation or more⁴
  • HELP THAT KEEPS UP: Stay in the moment while Now Nudge with Galaxy AI helps you respond faster and stay organized with smart suggestions⁵ that appear exactly when you need them on your phone

The user has not granted access

For apps targeting API 23 or later, a manifest declaration is not user authorization. Send the user to the overlay management screen only when the feature needs it, then recheck access when the app resumes. If authorization remains unavailable or is declined, do not block unrelated app functions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The app expects more than the permission provides

Overlay permission does not override Android’s window ordering, guarantee a specific position, or prevent the system from hiding or resizing a window. If an app expects to cover the status bar, keyboard, or protected UI, it is relying on behavior this permission does not provide.

Best Value
Tracfone Moto g Play 2024 Prepaid Phone with a 1-Yr Plan Included
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Activating is easy, just 3 steps.
  • ACTIVATION Promotion: Includes 1500 min, 1500 texts & 1500 MB Data + add more as you need it
  • CAMERA SYSTEM: 50MP Quad Pixel camera. Capture sharper, more vibrant photos day or night with 4x the light sensitivity.
  • PERFORMANCE: Blazing-fast Qualcomm performance. Get the speed you need for great entertainment with a Snapdragon 680 processor and 4GB of RAM.
  • 64GB built-in storage. Get plenty of room for photos, movies, songs, and apps. Made for US
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What are the security implications?

An overlay can obscure another app’s interface and could be used to mislead users, capture passwords, or read messages. Request access only for a clear feature, explain why it is needed, and keep the app useful if the user declines. Android’s guidance for securing sensitive activities describes the risks and the platform defense available to app developers.

Starting with Android 12, an app can use HIDE_OVERLAY_WINDOWS to opt out of third-party application overlays over its own UI. This is an app-side protection for sensitive screens, not a global setting that disables overlays across the device.

Does overlay permission allow background service starts?

No—not by itself in every situation. For apps targeting API 35 on Android 15, overlay permission provides one background foreground-service start exemption only while an overlay window is currently visible. Other exemptions may still apply, but merely having the permission does not always permit a background service start. See Android’s foreground-service changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.