I am trying to have a layout with 4 spinners that dynamically change with each previous selection in a spinner.
Whenever I try and open my app, the app crashes and will never open. Here is a copy of my LogCat.
I have no idea that what code I should post about the problem, if anyone has an idea, I will post the code accordingly.
-Thanks
Whenever I try and open my app, the app crashes and will never open. Here is a copy of my LogCat.
10-10 14:39:41.652: E/AndroidRuntime(1917): FATAL EXCEPTION: main
10-10 14:39:41.652: E/AndroidRuntime(1917): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.productguide/com.example.productguide.PowersportsEquivalent}: java.lang.NullPointerException
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread.access$600(ActivityThread.java:141)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.os.Handler.dispatchMessage(Handler.java:99)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.os.Looper.loop(Looper.java:137)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread.main(ActivityThread.java:5103)
10-10 14:39:41.652: E/AndroidRuntime(1917): at java.lang.reflect.Method.invokeNative(Native Method)
10-10 14:39:41.652: E/AndroidRuntime(1917): at java.lang.reflect.Method.invoke(Method.java:525)
10-10 14:39:41.652: E/AndroidRuntime(1917): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
10-10 14:39:41.652: E/AndroidRuntime(1917): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
10-10 14:39:41.652: E/AndroidRuntime(1917): at dalvik.system.NativeStart.main(Native Method)
10-10 14:39:41.652: E/AndroidRuntime(1917): Caused by: java.lang.NullPointerException
10-10 14:39:41.652: E/AndroidRuntime(1917): at com.example.productguide.DataBaseHelper.getPowersportsType(DataBaseHelper.java:29)
10-10 14:39:41.652: E/AndroidRuntime(1917): at com.example.productguide.PowersportsEquivalent.onCreate(PowersportsEquivalent.java:27)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.Activity.performCreate(Activity.java:5133)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
10-10 14:39:41.652: E/AndroidRuntime(1917): ... 11 more
10-10 14:39:41.652: E/AndroidRuntime(1917): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.productguide/com.example.productguide.PowersportsEquivalent}: java.lang.NullPointerException
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread.access$600(ActivityThread.java:141)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.os.Handler.dispatchMessage(Handler.java:99)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.os.Looper.loop(Looper.java:137)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread.main(ActivityThread.java:5103)
10-10 14:39:41.652: E/AndroidRuntime(1917): at java.lang.reflect.Method.invokeNative(Native Method)
10-10 14:39:41.652: E/AndroidRuntime(1917): at java.lang.reflect.Method.invoke(Method.java:525)
10-10 14:39:41.652: E/AndroidRuntime(1917): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
10-10 14:39:41.652: E/AndroidRuntime(1917): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
10-10 14:39:41.652: E/AndroidRuntime(1917): at dalvik.system.NativeStart.main(Native Method)
10-10 14:39:41.652: E/AndroidRuntime(1917): Caused by: java.lang.NullPointerException
10-10 14:39:41.652: E/AndroidRuntime(1917): at com.example.productguide.DataBaseHelper.getPowersportsType(DataBaseHelper.java:29)
10-10 14:39:41.652: E/AndroidRuntime(1917): at com.example.productguide.PowersportsEquivalent.onCreate(PowersportsEquivalent.java:27)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.Activity.performCreate(Activity.java:5133)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
10-10 14:39:41.652: E/AndroidRuntime(1917): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
10-10 14:39:41.652: E/AndroidRuntime(1917): ... 11 more
I have no idea that what code I should post about the problem, if anyone has an idea, I will post the code accordingly.
-Thanks
utputStream;

addingBottom="@dimen/activity_vertical_margin"