You use NoDisplay when you are not going to show a UI at all, typically
meaning you call finish() in onCreate() or onStart().

On Fri, Apr 17, 2009 at 3:23 PM, Bonifaz <[email protected]> wrote:

>
> When I apply
>
> android:theme="@android:style/Theme.NoDisplay"
>
> to my application (inside manifest.xml) I get a RunTimeException
> saying the layout_height attribute is not specified (see below).
> However, is this not the reason why we have Theme.NoDisplay, not to
> have any layout within an app?
>
> I do not need a layout in my activity, therefore I do not call
> setContentView at all. Anyway, if I call setContentView with an empty
> FrameLayout (layout_height set to wrap_content), it does not work
> either. As soon as I set Theme.NoDisplay the Exception raises.
>
> My activity calls finish() at the end of onCreate().
>
> What do I have to do to get rid of this exception? Am I something
> missing?
>
> -----------------------------------------------------------
> WARN/WindowManager(577): java.lang.RuntimeException: Binary XML file
> line #26: You must supply a layout_height attribute.
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to