storesafe / cordova-sqlite-storage

A Cordova/PhoneGap plugin to open and use sqlite databases on Android, iOS and Windows with HTML5/Web SQL API
Other
2.15k stars 716 forks source link

Access Phonegap SQLite data using java in android #175

Open ullas-fts opened 9 years ago

ullas-fts commented 9 years ago

Am developing an android app using HTML5 and Phonegap. App contains a database which developed using Phonegap..

Is there any possibility to access the database of the application using Java?

90% of my application is developed using HTML5 but , I have a requirement to add Java and access the data from Database(created by phonegap) using Java.

How can i do this? is there any possibility ?

http://stackoverflow.com/questions/28018602/access-phonegap-sqlite-data-using-java-in-android

jiteshgolecha commented 9 years ago

+1

nolanlawson commented 9 years ago

It's 100% possible, but just not documented apparently.

Just call:

File databaseFile = this.getDatabasePath("databasename");

getDatabasePath will tell you where the database is located.

jiteshgolecha commented 9 years ago

Thanks @nolanlawson. It's working.