TYPE_SYSTEM_ALERT for Activities
<p>I'm trying to throw an intent to an activity that's triggered by some event, and I'd like for the activity to halt execution of everything else while it's on top. As such, I'm setting the activity as TYPE_SYSTEM_ALERT in the activity's onCreate() method:</p>

<pre><code>super.onCreate(savedInstanceState);
Window w = this.getWindow();
w.setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
setContentView(R.layout.alert);
</code></pre>

<p>I noticed in the documentation that some window types/flags need to be set before setContentView, but I couldn't find a list of which. How do I know if my activity has indeed been set as a system window? All the examples I've seen online deal with Dialogs, not Activities.</p>

<p>Thanks.</p>
