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

teamtreehouse.com | 5 months ago
  1. 0

    Help with ActionBarActivity | Treehouse Community

    teamtreehouse.com | 5 months ago
    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
  2. 0

    UI Stack Traces++

    GitHub | 2 years ago | moxie0
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.thoughtcrime.securesms/org.thoughtcrime.securesms.MediaPreviewActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
  3. 0

    Using custom title bar in android studio

    Stack Overflow | 2 years ago
    android.util.AndroidRuntimeException: requestFeature() must be called before adding content
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    My app is crashing after installing the MonkeyTalk agent

    Stack Overflow | 3 years ago | Fernando Camargo
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.soongz/com.soongz.ui.CadastroActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
  6. 0

    Using ActionBarCompat and requestWindowFeature

    Stack Overflow | 3 years ago | Kitesurfer
    java.lang.RuntimeException: Unable to start activity ComponentInfo{net.app.packagename/net.app.fragment.CustomActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.util.AndroidRuntimeException

    requestFeature() must be called before adding content

    at com.android.internal.policy.impl.PhoneWindow.requestFeature()
  2. Android
    PhoneWindow.requestFeature
    1. com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:211)
    1 frame
  3. Android Platform
    Activity.requestWindowFeature
    1. android.app.Activity.requestWindowFeature(Activity.java:3089)
    1 frame
  4. com.jordanpeterson.textly
    MainActivity.onCreate
    1. com.jordanpeterson.textly.ui.MainActivity.onCreate(MainActivity.java:192)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:4471)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1924)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1985)
    5. android.app.ActivityThread.access$600(ActivityThread.java:123)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1151)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:137)
    9. android.app.ActivityThread.main(ActivityThread.java:4429)
    9 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:3151)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:2918)
    2 frames
  8. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame