Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6078653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:51:28+00:00 2026-05-23T10:51:28+00:00

I haven’t been able to figure this one out. I have two activities, one

  • 0

I haven’t been able to figure this one out.

I have two activities, one with a listview, the other with a spinner. Both are supposed to be binding to the same data source. Both are using the same method for accessing the data. However, while the listview opens the database and fills the list just fine, the spinner crashes as soon as it hit my database helper open method.

Below is the StackTrace:

06-23 20:52:18.836: WARN/System.err(16420): java.lang.NullPointerException
06-23 20:52:18.857: WARN/System.err(16420): at

com.enkadia.reelogistics_0621.ProjectActivity.fillProjectSpinner(ProjectActivity.java:46)
06-23 20:52:18.857: WARN/System.err(16420): at

com.enkadia.reelogistics_0621.ProjectActivity.onCreate(ProjectActivity.java:27)
06-23 20:52:18.857: WARN/System.err(16420): at

android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-23 20:52:18.857: WARN/System.err(16420): at

android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
06-23 20:52:18.857: WARN/System.err(16420): at android.app.ActivityThread.startActivityNow

(ActivityThread.java:2503)
06-23 20:52:18.857: WARN/System.err(16420): at android.app.LocalActivityManager.moveToState

(LocalActivityManager.java:127)
06-23 20:52:18.857: WARN/System.err(16420): at

android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
06-23 20:52:18.857: WARN/System.err(16420): at android.widget.TabHost

$IntentContentStrategy.getContentView(TabHost.java:651)
06-23 20:52:18.866: WARN/System.err(16420): at android.widget.TabHost.setCurrentTab

(TabHost.java:323)
06-23 20:52:18.866: WARN/System.err(16420): at android.widget.TabHost.addTab

(TabHost.java:213)
06-23 20:52:18.866: WARN/System.err(16420): at

com.enkadia.reelogistics_0621.MainActivity.onCreate(MainActivity.java:28)
06-23 20:52:18.866: WARN/System.err(16420): at

android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-23 20:52:18.866: WARN/System.err(16420): at

android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
06-23 20:52:18.866: WARN/System.err(16420): at

android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
06-23 20:52:18.876: WARN/System.err(16420): at android.app.ActivityThread.access$2300

(ActivityThread.java:125)
06-23 20:52:18.876: WARN/System.err(16420): at android.app.ActivityThread$H.handleMessage

(ActivityThread.java:2033)
06-23 20:52:18.876: WARN/System.err(16420): at android.os.Handler.dispatchMessage

(Handler.java:99)
06-23 20:52:18.876: WARN/System.err(16420): at android.os.Looper.loop(Looper.java:123)
06-23 20:52:18.876: WARN/System.err(16420): at android.app.ActivityThread.main

(ActivityThread.java:4627)
06-23 20:52:18.887: WARN/System.err(16420): at java.lang.reflect.Method.invokeNative(Native

Method)
06-23 20:52:18.887: WARN/System.err(16420): at java.lang.reflect.Method.invoke

(Method.java:521)
06-23 20:52:18.887: WARN/System.err(16420): at com.android.internal.os.ZygoteInit

$MethodAndArgsCaller.run(ZygoteInit.java:868)
06-23 20:52:18.887: WARN/System.err(16420): at com.android.internal.os.ZygoteInit.main

(ZygoteInit.java:626)
06-23 20:52:18.887: WARN/System.err(16420): at dalvik.system.NativeStart.main(Native Method)

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:51:29+00:00Added an answer on May 23, 2026 at 10:51 am

    Face Palm

    Don’t instantiate your database helper in one Activity and forget to do it in the other.
    Things working much better now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Haven't been able to figure this out yet.. I've seen a few answers around
Haven't been able to find this one out. How are Bitmaps stored in memory
I haven't been able to figure out how to use strings from resource files
I haven't been able to get this working and all of the sample code
I haven't been able to find much about this but am I the only
I haven't been able to find any useful resources online on how to do
I haven't been able to find documentation that talk about how create.js.erb and destroy.js.erb
Haven't seen this before so hopefully someone has a easy solve, I have a
I haven't been able to find a tutorial on how to properly setup a
I haven't been able to understand what the resolution rule is in propositional logic.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.