I am trying to develop a lock screen. I am placing a view from my service that acts as a lock screen and display in front of all activities and i'm almost finished with it. But from my service, i am not able to access getwindow() propery to provide the following

```
View.SYSTEM_UI_FLAG_IMMERSIVE

```

Please help