Unable to add window android.view.ViewRootImpl$W@dba576a -- permission denied for window type 2003 at android.view.ViewRootImpl.setView(ViewRootImpl.java:822) code example
Example 1: permission denied for window type 2002
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
Example 2: permission denied for window type 2002
WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY