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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:17:11+00:00 2026-05-17T19:17:11+00:00

Im doing an app which uses sqlite db file in assets folder, There is

  • 0

Im doing an app which uses sqlite db file in assets folder, There is a screen in my app having a button ‘check for update’.

Client has given me an URL link to update db file(which gives a sqlite file).

When user clicks on the button i need to upgrade the old db file with new db file from URL.

Please suggest me how i can do this, or give me a reference to follow

Thank you

  • 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-17T19:17:12+00:00Added an answer on May 17, 2026 at 7:17 pm

    The assets folder is read-only, so you won’t be able to change or replace that copy.

    Basically, you need to copy your DB file out of the assets folder into a writable application directory (probably from getFilesDir() or getExternalFilesDir()). You’ll open this copy when you are actually operating, and you’ll replace it with the new DB from the web when your user hits the UPDATE button. Because a SQLite database is just a file, there’s no problem with deleting the old one and replacing it with a new one. (Close the old one before deleting, of course, for cleanliness.)

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

Sidebar

Related Questions

My app (which uses MySQL) is doing a large number of subsequent upserts. Right
I'm doing some i18n on a web-based app using Django, which uses gettext as
I am doing small Silverlight app which will allow users to Create orders. I
I am doing some initial testing for a Rails app which will be deployed
I'm currently developing an app which uses tabs and google map. What I want
I'm implementing a web app, which uses sessions. I'm using GWT and app engine
I have an iPhone app which uses facebook. The user experience is not great
I am creating an RCP app which uses a host of third-party plugins. Some
I have a app which uses subdomains to route to agencies: foo.domain.dev -> Agency:showAction(foo)
My app, which uses ARC, does the following: Uploads a picture taken by 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.