gran33
gran33

Reputation: 12991

Disable activity that starts another activity

I have a popup which I implement with an activity, e.i the activity doesn't fill the whole screen, and looks like a popup.

How can I disable the caller activity? (The background activity).

I want the same functionality as if I used a classic popup:

popup.setOutsideTouchable(false);

Thanks in advance!

Upvotes: 1

Views: 167

Answers (1)

stinepike
stinepike

Reputation: 54722

you can create an activity with

android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen".

There add your view over the transparent activity like a popup.

Upvotes: 1

Related Questions