java.lang.RuntimeException

Unable to instantiate activity ComponentInfo{com.StreetDirectory.android/com.StreetDirectory.android.StreetDirectoryIndex}: java.lang.IllegalStateException: System services not available to Activities before onCreate()

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web108

  • via Stack Overflow by Alexander Fuchs
    ,
  • via Stack Overflow by 2619
    ,
  • Stack trace

    • java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.StreetDirectory.android/com.StreetDirectory.android.StreetDirectoryIndex}: java.lang.IllegalStateException: System services not available to Activities before onCreate() at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512) at android.app.ActivityThread.access$2200(ActivityThread.java:119) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4363) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalStateException: System services not available to Activities before onCreate() at android.app.Activity.getSystemService(Activity.java:3468) at android.app.Dialog.<init>(Dialog.java:139) at android.app.AlertDialog.<init>(AlertDialog.java:63) at android.app.ProgressDialog.<init>(ProgressDialog.java:80) at android.app.ProgressDialog.<init>(ProgressDialog.java:76) at android.app.ProgressDialog.show(ProgressDialog.java:101) at android.app.ProgressDialog.show(ProgressDialog.java:90) at com.StreetDirectory.android.StreetDirectoryIndex.<init>(StreetDirectoryIndex.java:61) at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1479) at android.app.Instrumentation.newActivity(Instrumentation.java:1021) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409) ... 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

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,