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

  • Home
  • SEARCH
  • 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 6169641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:53:29+00:00 2026-05-23T22:53:29+00:00

I have an android app, which is basically an exam simulator, it will come

  • 0

I have an android app, which is basically an exam simulator, it will come preloaded with questions and the user gets a simple multiple choice interface.

My question is, what is the best way to preload, or at least manage the task of preloading data into a SQL database?

Two options I can see right off the bat :

  1. Get SQLite browser, manually insert each entry. I don’t like this as it feels too “cowboy”
  2. Create some utility class that gets run once and inserts a bunch of data, I don’t like this either as I don’t think that hardcoding a load of inserts in a class file is good practice.

What is the best option (open to alternative suggestions) for this problem? Can I have a SQL insert script that gets loaded on startup?

The data will be static, if it needs to change I’ll publish a new version of the app. I expect there to be 200~ questions, so I won’t have masses of inserts.

Any ideas?

  • 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-23T22:53:30+00:00Added an answer on May 23, 2026 at 10:53 pm

    This website explains it well:

    http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/

    Basically, you put the db in your assets folder, then the first time you run the app the db is copied to the right place, and you can use it.

    I think this is a duplicate of this question:
    How can I embed an SQLite database into an application?

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

Sidebar

Related Questions

I have a section on my Android app called 'More Information' which is basically
I have developed some reusable android component which is basically a class . This
I'm abit new to programming Android App's, however I have come across a problem,
I am developing an app in android, which basically visits a given url and
I have an Android app which needs to play a sound resource on a
I have a small app which runs in background doing some tasks which basically
i have a simple activity program in android. basically the class just extends Activity.
I have android app in which one layout contains Linearlayout , ScrollView , TextView
I have an android app which uses camera. I am using a socket connection
I have an Android app which I use to register users on my web

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.