java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.ecohapp/com.example.ecohapp.SignUpActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

Stack Overflow | Ameer Akashe | 3 months ago
  1. 0

    Android Studio NullPointerException when I click a button to start a new activity?

    Stack Overflow | 3 months ago | Ameer Akashe
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.ecohapp/com.example.ecohapp.SignUpActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
  2. 0

    Facing an exception in the EditText

    Stack Overflow | 10 months ago | Abhinav Shirur
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.abhinav123.sinch2/com.example.abhinav123.sinch2.CallActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference
  3. 0

    Using Intent to parse Values from Adapter to Activity

    Stack Overflow | 1 month ago | Paperwrk
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.paperwrrk.playlistyoutube/com.paperwrrk.playlistyoutube.Activity2}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    "You need to use a theme.appcompat theme" with Theme.AppCompat as theme, Sdk v23

    Stack Overflow | 1 year ago | guillaume_fr
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.android.debug/com.myapp.mobile.activities.HomeActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
  6. 0

    Same code but app crashes?

    Stack Overflow | 11 months ago | jcrossley
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.f454.jackc.chiropodist/com.f454.jackc.chiropodist.MainActivity}: java.lang.IllegalArgumentException: AppIndex: The android-app URI host must match the package name and follow the format android-app://<package_name>/<scheme>/[host_path]. Provided URI: android-app://com.f454.jackc.chiropody/http/host/path

  1. andreeaa marin 180 times, last 1 week ago
  2. Reich 59 times, last 6 days ago
  3. gamebusterz 25 times, last 6 days ago
  4. Emrah Küçük 3 times, last 4 weeks ago
  5. Riyaz 2 times, last 1 month ago
43 more registered users
11 unregistered visitors
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. java.lang.RuntimeException

    Unable to instantiate activity ComponentInfo{com.example.ecohapp/com.example.ecohapp.SignUpActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2361)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510)
    2 frames