java.lang.RuntimeException

Unable to start activity ComponentInfo{com.jordanpeterson.textly/com.jordanpeterson.textly.ui.MainActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web41009

  • via teamtreehouse.com by Unknown author, 1 year ago
    Unable to start activity ComponentInfo{com.jordanpeterson.textly/com.jordanpeterson.textly.ui.MainActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
  • via GitHub by skypanther
    , 8 months ago
    Unable to start activity ComponentInfo{com.acvauctions.demo/com.skypanther.picatsize.PASCameraActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
  • Unable to start activity ComponentInfo{com.eliasbagley.socketservertest/com.eliasbagley.socketservertest.MainActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jordanpeterson.textly/com.jordanpeterson.textly.ui.MainActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1960) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1985) at android.app.ActivityThread.access$600(ActivityThread.java:123) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1151) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4429) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:3151) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:2918) at dalvik.system.NativeStart.main(Native Method) Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:211) at android.app.Activity.requestWindowFeature(Activity.java:3089) at com.jordanpeterson.textly.ui.MainActivity.onCreate(MainActivity.java:192) at android.app.Activity.performCreate(Activity.java:4471) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1924) ... 11 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 5 months ago
    15 times, 1 year ago
    Unknown user
    Once, 1 year ago
    12 times, 1 year ago
    Unknown user
    Once, 1 year ago
    6 more bugmates