I have an imageview and i set Image Resources programmatically like this:
int resourceId = getResources().getIdentifier(\"imagename\", \"drawable\", \"mypack
You can use RenderScript to accomblish that as explained here or you can use the stackblur library to make a blurring effect in your image.
Usage of the stackblur library:
int resourceId = getResources().getIdentifier("imagename", "drawable", "mypackage");
// get bitmap from resource id
Bitmap bitmap = BitmapFactory.decodeResource(getResources(), resourceId);
StackBlurManager stackBlurManager = new StackBlurManager(bitmap);
// process the image using a certain radius
stackBlurManager.process(progress*4);
// obtain the image and load it into an ImageView or any other component
imgLock.setImageBitmap(stackBlurManager.returnBlurredImage());