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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:13:42+00:00 2026-06-04T09:13:42+00:00

I am a novice, and am creating a simple app that just reads data

  • 0

I am a novice, and am creating a simple app that just reads data from a table in an SQLite database and displays on the GUI. (Just select operation )

During development, I created the database and the table from the tool “SQLite Database browser”. And I inserted all data into the table through the tool.

Now, my doubt is ..

1) In java code, should I have some method that creates database and table ?? (For now, I have methods to do the select operation alone)

2) The database I created is located in my local drive. When the apk file gets created would the database also be included in the apk file ??

Pls help !! 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-04T09:13:43+00:00Added an answer on June 4, 2026 at 9:13 am

    1) In Java code, should I have some method that creates database and table ?? (For now, I have methods to do the select operation alone)

    No, You have to just copy your database file from /asset directory to /data/data/<package_name>/database directory. And only use select operation alone. You don’t need to use create Database and table operation..

    2) The database I created is located in my local drive. When the apk file gets created would the database also be included in the apk file?

    For this, as I mentioned above you have to first put your database file into application’s /asset directory, then copy it to internal storage (when your application start), then it works.

    Look at this SO question How to ship an Android application with a database?. It answered what you needed.

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

Sidebar

Related Questions

I'm creating a stacked bar chart just like this one . Notice that the
I'm thinking about creating a location-aware iPhone app that could work offline by coming
I wrote a simple WinForm program in C# that displays the time, updating every
I am creating a new XDocument from a table. I have to validate the
I'm creating a new feed from django.contrib.gis.feeds.Feed which inherits django.contrib.syndication.feeds.Feed . I notice that
I'm getting a consistent crash when I create a simple app that uses a
I'm a bit of a novice to PHP and MySQL. I'm creating my own
I'm a relative VBA novice, and designing a fairly complex macro that can run
I am in the process of creating some fluent interfaces for some simple validation
I am creating a excel sheet that would autocomplete a text based on the

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.