I want make background window blur when showing alert dialog. I have tried -
WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();
lp.dimAmount = 0.0f;
dialog.getWindow().setAttributes(lp);
dialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
but it is not working in, also it seems "FLAG_BLUR_BEHIND" is deprecated. is there any other way to achieve this without using third party libraries?