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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to