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:
super.onCreate(savedInstanceState);
Window w = this.getWindow();
w.setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
setContentView(R.layout.alert);
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.
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment