android.util.AndroidRuntimeException: requestFeature() must be called before adding contentvat com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:302) at com.android.internal.app.AlertController.installContent(AlertController.java:233)

Stack Overflow | Pranesh Sahu | 4 months ago
  1. 0

    Dialog box using fragment shows error

    Stack Overflow | 4 months ago | Pranesh Sahu
    android.util.AndroidRuntimeException: requestFeature() must be called before adding contentvat com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:302) at com.android.internal.app.AlertController.installContent(AlertController.java:233)
  2. 0

    Strange crash logs when use mopub library

    GitHub | 3 years ago | omihaz
    android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
  3. 0

    Android application crash reported by google play crash report

    Stack Overflow | 4 years ago | Santosh
    android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    call to finish() causes startActivity() AndroidRuntimeException

    Stack Overflow | 4 years ago | gnac
    android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
  6. 0

    Android WebView crashes when clicking on a link

    Stack Overflow | 7 years ago
    android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

    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 contentvat com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:302) at com.android.internal.app.AlertController.installContent(AlertController.java:233)

      at android.app.AlertDialog.onCreate()
    2. Android Platform
      ActivityThread.main
      1. android.app.AlertDialog.onCreate(AlertDialog.java:356)
      2. android.app.Dialog.dispatchOnCreate(Dialog.java:373)
      3. android.app.Dialog.show(Dialog.java:274)
      4. android.app.DialogFragment.onStart(DialogFragment.java:490)
      5. android.app.Fragment.performStart(Fragment.java:2077)
      6. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:922)
      7. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
      8. android.app.BackStackRecord.run(BackStackRecord.java:834)
      9. android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
      10. android.app.FragmentManagerImpl$1.run(FragmentManager.java:447)
      11. android.os.Handler.handleCallback(Handler.java:739)
      12. android.os.Handler.dispatchMessage(Handler.java:95)
      13. android.os.Looper.loop(Looper.java:135)
      14. android.app.ActivityThread.main(ActivityThread.java:5254)
      14 frames
    3. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    4. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      2 frames