[Mono-bugs] [Bug 633032] New: AndroidRuntimeException in RequestWindowFeature

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 19 20:43:58 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=633032

https://bugzilla.novell.com/show_bug.cgi?id=633032#c0


           Summary: AndroidRuntimeException in RequestWindowFeature
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mkestner at novell.com
        ReportedBy: jpobst at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Repro:

namespace Mono.Samples.Hello
{
    public class HelloActivity : Activity
    {
        public HelloActivity (IntPtr handle) : base (handle)
        {
        }

        protected override void OnCreate (Bundle bundle)
        {
            base.OnCreate (bundle);

            RequestWindowFeature (Window.FeatureNoTitle);
        }
    }
}

Exceptions:

E/AndroidRuntime(  448): FATAL EXCEPTION: main
E/AndroidRuntime(  448): android.util.AndroidRuntimeException: requestFeature()
must be called before adding content
E/AndroidRuntime(  448):     at
com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:172)
E/AndroidRuntime(  448):     at
android.app.Activity.requestWindowFeature(Activity.java:2719)
E/AndroidRuntime(  448):     at
mono.samples.hello.HelloActivity.n_onCreate(Native Method)
E/AndroidRuntime(  448):     at
mono.samples.hello.HelloActivity._serviceConnected(HelloActivity.java:55)

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list