I am developing app for background videorecording ,thats why i used WindowManager,but it did not worked for me.gives following errors:
08-
if your application apiLevel >= 19, don't use
WindowManager.LayoutParams.TYPE_PHONE or WindowManager.LayoutParams.TYPE_SYSTEM_ALERT
you can use
LayoutParams.TYPE_TOAST
or
TYPE_APPLICATION_PANEL
now my code for LayoutParams is like,
WindowManager.LayoutParams params = new WindowManager.LayoutParams(
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.TYPE_TOAST,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
PixelFormat.TRANSLUCENT);