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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:14:48+00:00 2026-06-06T10:14:48+00:00

I wanted to access my existing .db file from sdcard using phoneGap but method

  • 0

I wanted to access my existing .db file from sdcard using phoneGap but method available in phoneGap accepts only database name not path as given below.
var db = window.openDatabase(“Database”, “1.0”, “Cordova Demo”, 600000);

so I thought to make changes in cordova-1.7.0.jar which has native code to communicate with device. I found Storage.java which has openDatabase(String db, String version, String display_name,long size) method wherein I just need to assign a variable i.e
path = “/mnt/sdcard/database” and recompile the .jar file. so I downloaded cordova source from below given path i.e. https://github.com/apache/incubator-cordova-android and made changes in this and created new .jar file to use in my project. but its giving error when application loads.

  • 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-06T10:14:51+00:00Added an answer on June 6, 2026 at 10:14 am

    It would be better to write your code as a plugin as PhoneGap uses the WebKit database. There is already a plugin for accessing external SQLite database, but it is for iOS. Nevertheless, it would be a good starting point for you to write your own plugin for Android. The existing plugin can be found in https://github.com/davibe/Phonegap-SQLitePlugin

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

Sidebar

Related Questions

I am developing a blackberry application and i wanted to access the websites from
I wanted to move our existing repository (from location A) to a new linux
I am mapping some pre-existing Business Objects to our database using Entity Framework. These
If I wanted to access a database in Delphi, I could add a datamodule
I wanted to know is C# array has a constant access speed? I need
Good day I wanted to have a general URL to access the Desktop of
Just wanted to know if anyone is really using Objects and Collections in Oracle
I have an Access 2003 database MDB where all of the tables exist as
I wanted clipboard access for a web app that I built for my own
I wanted to access the thumb cache of vista and 7 to be used

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.