Hi, I have a similar problem, but I have not preferences.xml file anywhere in res/xml.
On the emulator my theme works fine and I can see the other activity in the background. But on my device (G1) the screen is rendered black. Anybody any idea? On 24 Mrz., 00:20, "jonlerne...@gmail.com" <jonlerne...@gmail.com> wrote: > I am experiencing a very strange problem. In my application, I have a > theme that I use for one of my activities: > android:theme="@style/Theme.Translucent" > > The theme is defined as follows: > <style name="Theme.Translucent" parent="android:style/ > Theme.Translucent"> > <item name="android:windowBackground">@drawable/ > translucent_background</item> > <item name="android:windowNoTitle">true</item> > <item name="android:colorForeground">#fff</item> > </style> > > where <drawable name="translucent_background">#c0000000</drawable> > > This is used for an activity that does not take up the entire screen, > so the previous activity can be seen through translucency in the > background. Everything works well, until I add a preferences.xml file > into res/xml. After adding this file (without adding any code), the > translucency stops working entirely. The background around the > activity becomes black all the time. Note however, that this only > happens on the device, it works fine on theemulator. If I delete this > single file, all goes back to normal. > > Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---