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/']
I guess you are misusing the word "Service".
Service is invisible, Activities are visible.

There are no buttons in an Service!

So you have no choice! You should put both views in one Activity, and I would use a RelativeLayout and set the visibility of your chidren to GONE/Visible.

<http://developer.android.com/reference/android/widget/RelativeLayout.html>

Also using a popup and making the layout under it clickable will disturb the user. You are completely changing User experience. I strongly suggest too make your popup appear at the top/bottom of your initial layout
What you want is an Activity instead of a Service and a Dialog instead View. I suggest you read this document by google: <http://developer.android.com/guide/topics/fundamentals.html>

However to answer your question about both being interactable. This isn't possible. At any given time 1 and only 1 activity is on the top of the activity stack. The user can only interact with that activity. If you want something like a floating window then will have to create it yourself. Although keep in mind that goes against the android design principles.