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 6095343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:48:06+00:00 2026-05-23T12:48:06+00:00

I have developed a tab-based application using API level 7. It is running fine

  • 0

I have developed a tab-based application using API level 7. It is running fine with Android 2.1 device. But it is giving problem when I am trying to run it in 2.2 device. When I visit any tab first time, it is OK. But if the same tab is revisited, it is giving following error msg.

android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here

But no such problem in 2.1 device. Here I like to mention that I have closed the database connection in each of the activity of any tab.

More surprisingly, initially I am at tab A. For Tab A I have done some database operation. Then I go to tab B with no problem where also database operation is done with same database. Then if I come back to tab A, it is giving this error. If it is database and cursor closing related problem, it should give exception when I am going from tab A to B. Can anyone locate where is problem?

  • 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-23T12:48:06+00:00Added an answer on May 23, 2026 at 12:48 pm

    It is not at all tab related prob. In onCreate() there is a code-

    datePickerDialog = new DatePickerDialog(getParent(), ButtonTestDateListener,
                    mYear, mMonth, mDay);
    

    I have just declare the mYear, mMonth and mDay as Integer, but no initialization was there. It is working fine in 2.1, but giving prob in 2.2. Before that I have opened the database connection and not closed it. Thats why it is giving such problem.

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

Sidebar

Related Questions

I have developed an iPhone application based on Tab bar & Navigation bar and
I have an application developed for android phone. Now I am going to customize
I have a VS2008 C++ application for Windows XP SP3 developed using WTL 8.1.
How do you handle multiple screens in an android application? I have developed with
We currently have an iframe-based Facebook canvas application in the works. The canvas portion
I have developed a static library using the iPhone OS->Library->Cocoa Touch Static Library of
My i have to develop simple window based iphone application. In my first screen
As per the android developer docs for creating tab UI you need to have
I have developed a simple Apache-Axis java web service using Eclipse IDE and now
I have developed a simple application on Emulator and would like to test/install it

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.