java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thenewboston.akshit/com.thenewboston.akshit.Camera}: java.lang.NullPointerException

Stack Overflow | Akshit Agarwal | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    App force close thenewboston android tutorial

    Stack Overflow | 8 months ago | Akshit Agarwal
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thenewboston.akshit/com.thenewboston.akshit.Camera}: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.thenewboston.akshit.Camera.initialize()
    2. com.thenewboston.akshit
      Camera.onCreate
      1. com.thenewboston.akshit.Camera.initialize(Camera.java:37)
      2. com.thenewboston.akshit.Camera.onCreate(Camera.java:29)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5243)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
      5. android.app.ActivityThread.access$700(ActivityThread.java:135)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:137)
      9. android.app.ActivityThread.main(ActivityThread.java:4998)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame