I have a trivial HelloWorld example. The activity has android:theme="@android:style/Theme" in AndroidManifest.xml and displays as a full-screen activity. If I change the style to "@android:style/Theme.Dialog", it launches as a dialog and I can see the Home screen as the background. Both of these are as expected.
The problem arises if the manifest has "@android:style/Theme", but I do setTheme(android.R.Theme_Dialog) in onCreate() before the call to setContentView. In this case, the activity shows as a dialog box, but the background is all black. Shouldn't this be exactly the same as using "@android:style/Theme.Dialog" in the manifest? I want to be able to choose between themes conditionally, and so am trying to call setTheme(android.R.Theme_Dialog) in onCreate(). Thanks, Shri -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

