I am trying to apply the following in order to help blur the background behind my dialog box which currently has a transparent background: Blur Background Behind AlertDialog
Only issue is, when the following section of code is applied inside the launch of my dialog box following an OnClick Method in my MainActivity.java:
'Bitmap map=takeScreenShot(BlurImageView.this); 'Bitmap fast=fastblur(map, 10);'
There is a red line under 'map, 10' with the error: 'fastblur(android.graphics.Bitmap, float, int)' in 'anonymous class' cannot be applied to '(android.graphics.Bitmap, int)'
Does anybody know what I might need do to eliminate this error please? Everything else seems to be fine, bar for that small snippet of code.
I can provide the rest of my MainActivity code if required? Unless anybody knows of a better way to blur the background under a dialog box in 2022?
Many thanks.