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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:56:47+00:00 2026-06-18T03:56:47+00:00

I am trying to develop an Android application that will use externally created SQLite

  • 0

I am trying to develop an Android application that will use externally created SQLite database.
The required application operational cycle is as follows:

  1. The database is recreated and populated with data (from another
    database) on the external (Windows desktop) machine on a regular
    (daily) basis.
  2. That database is then pushed into Android device via USB or WIFI.
  3. The newly pushed database is used to enter new data on the Android device. The entered records are flagged (to distinguish them
    from the existing ones).
  4. At the end of the day, the database is pulled from Android device back to the Windows desktop machine (this process needs to be
    initiated by the Windows application, not by Android application).
  5. The new (flagged) records are extracted from the SQLite database on the Windows desktop, validated and added to the main Windows
    desktop database.
  6. The updated, complete desktop database is then copied into a new SQLite database, which is finally pushed back into the Android
    device (see point 1 and 2).

Notes:

  1. List item
  2. The SQLite database cannot be created on the Android device by the Android application.
  3. Placing the externally created and populated database in assets directory in the apk is not feasible, as this would only work on the initial application installation, and would not meet the key requirement for a daily database push/pull routine.
  4. It is not feasible to have the SQLite database stored/imported from the web server, as users would normally not have access to the internet while using this application, i.e. the SQLite database push/pull process needs to be done on Android connected to a standalone Windows machine via USB or WIFI.
  5. The preference would be to store and access the database from the Android internal storage area (or SDCard), but outside the hidden/protected internal root storage section, i.e. not in /data/data/package_name/databases/, in order to provide users with free access to the database file stored on the Android device.
  6. The key obstacle appears to be the recognition of the externally created, pushed database by the Android application. I have tested it by copying the database file created by the application into a different folder (still within the data/package_name/.. root section) and then copying it back to the ../databases/ folder. That was sufficient to upset the database access by the application: I would get an “Error opening trace file: no such file or directory (2)”, despite trying to open the same unaltered database file. I presume, this restriction is due to the Android ‘Sandbox’ file security protection ?

How to overcome the above database copy/push/pull issues and how to implement this required database access push/pull model?

  • 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-18T03:56:49+00:00Added an answer on June 18, 2026 at 3:56 am

    If you require USB, ADB will do that for you.

    adb push <local db> <android db>
    
    adb pull <android db> <local db>
    

    For example:

    adb push database.db /sdcard/mypath/database.db
    adb push /sdcard/mypath/database.db database.db
    

    You can also have the Windows machine remove the database from the Android device, like so:

    adb shell rm /sdcard/mypath/database.db
    

    Additionally, you can use adb to start activities or broadcast intents, so that you could tell the app to close the database and exit prior to pulling the db.

    If Wifi is an option (better option), there are various ways to access data on android devices over wifi:

    • NanoHTTPd turns the device into a webserver using just a single .java file.
    • jCIFS lets the Android device access Windows shares.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to develop an android application that will use Bluetooth capabilities to
I am trying to develop an android application that will use the same MySQL
I am trying to develop an android application that will stream the video from
I'm trying to develop an application that will simulate a route through Google's Navigation
We going to develop commercial application that will run on Android platform and now
Am new to Android Apps and trying to develop a search application that should
I am trying to develop an android application which will retrieve a voicemail message
I am trying to develop an application in android in which users will be
I am trying to develop an Android application that can be used to find
I'm trying to develop an android application that uses network connection. The server is

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.