Adarsh Adarsh - 1 year ago 177
Android Question

How to blur a relativeLayout

Hi my app contain a service class.In service class I have a

which contains a
init.I want to blur the relative layout so that everything behind that will look blurred.I have got some blurring code but they work only in Activity class not in service class.So,are there any solution.I want to simply blur a relativeLayout so that everything behind that will look blurrish.

The code that I use to blur the layout

Answer Source
Yes send Context or Activity parameter to services class of Activity and then use
like that 

In service class 
    public void functionname(Context context){
    //do what u want

   In Activity class
    //call this function in activity class

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download