I trying to create a view that is above other applications:
WindowManager.LayoutParams paramsDirectorView = new WindowManager.LayoutParams( WindowMan
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){ layoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; }else { layoutParams.type = WindowManager.LayoutParams.TYPE_PHONE; }