Already asked a similar question, yet without much luck.

Suppose I have a service and I need a view to pop up above it. In the same time, they both should be intractable, i.e. the user should be able to both click buttons within the view, as well as ones on the service in the background.

![enter image description here](https://i.stack.imgur.com/DaH3r.jpg)

Is this in theory possible? If yes, how should I initialize that view?

Thanks!
['https://Stackoverflow.com/questions/7521307', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/651418/']
Yes it's possible, what you need to do is call the `WindowManager` service and add your view via the same.

```
WindowManager windowManager=(WindowManager)getSystemService(WINDOW_SERVICE);
LayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
RelativeLayout layout=(RelativeLayout) inflater.inflate(R.layout.box,null);

```

You need a `WindowManager.LayoutParams` object which should contain the parameters for the layout

```
windowManager.addView(layout,params);

```

Well, adds the view
Services most definitely can have a user interface: Input methods are an obvious example. See <http://developer.android.com/resources/samples/SoftKeyboard/index.html> for an example.