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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:38:32+00:00 2026-06-14T23:38:32+00:00

Am completely new to android development(from J2EE,Spring and Oracle background). Just trying to create

  • 0

Am completely new to android development(from J2EE,Spring and Oracle background). Just trying to create a logo quiz app in android. Am planning my simple sqlite db structure to be,

  1. unique image name
  2. answer for the logo image(to check with user input)
  3. whether answered or not (just a flag)
  4. if answered, then points.

As soon as the user installs the app, the table has to be created with all the values. Now, my doubt would be, how to store this data? If i code this storing logic in an activity, then every time when the activity is started, would we be creating a new db and store it? where the coding logic for this initial storage would go?

Any help is much appreciated for this dummies question… Thanks in advance…

  • 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-06-14T23:38:33+00:00Added an answer on June 14, 2026 at 11:38 pm

    try this code to check wether or not your database is exist

    private boolean checkDataBase(){
    
            SQLiteDatabase checkDB = null;
    
            try {
    
                String myPath = DB_PATH + DB_NAME;
                checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);
    
            } catch (SQLiteException e) {
                // TODO: handle exception
            }
    
            if(checkDB != null){
                checkDB.close();
            }
    
            return checkDB != null;
        }
    

    so if it return true you don’t need to create a new database

    or you also can learn from this
    link

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

Sidebar

Related Questions

I'm new to android development, and im trying to create an app that is
I'm completely new to Android development, but I just got a HTC Hero and
im trying to port an iphone app to android. i am completely new to
i am very new to the android app development, and i have just almost
I am completely new to Android and currently trying to generate listview from JSON
I'm completely new to javascript, but I'm trying to create a beta form for
I'm completely new to Android development and would like to find out if the
Ok, so I just recently got into this Android app development using Eclipse for
I am new to the android application development, I designed an app, which is
I am new to android development, and I have an app that when run

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.