Hi, I am trying to use the same activity, but use it as a dialog under some conditions and as a regular activity under others. I tried calling setTheme to setting it to Theme.Dialog style, but the previous activity is blocked by black background. So I think I figured out so far that it's isFloating property that decides this.
So my question is if there is any way to set this from a code in my Activity class. Calling setTheme inside onCreate() seems to be too late, and doing it on the constructor gives me a NullPointerException. I know the easiest way to do this would be, to subclass my activity and use different theme in my Manifest file, but unfortunately I am getting some crash reports from my users when I do that: http://stackoverflow.com/questions/8620118/stackoverflowerror-on-activity-oncreate Any help or suggestion would be very appreciated. 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en