1

I am creating a new app using phonegap (html and javascript) and am using an SQLite database. Due to phonegap limitations and my need for a dynamic database I am following these steps:

1 - creating an external database 2 - exporting this with the .apk file 3 - on app load I replace the phonegap database with my database

The issue I am having here is working out whether 'LocalFileSystem.PERSISTENT' or TEMPORARY. It looks like it is persistent. However, I am not sure how I can root my device allowing me to access and replace the database within the relevnt 'LocalFileSystem.PERSISTENT' section.

Thanks

SingleWave Games
  • 2,618
  • 9
  • 36
  • 52

1 Answers1

0

By default your SQlite database is created at:

/data/data/Your Package/databases/your database 

For using already created database see this.

Community
  • 1
  • 1
Yaqub Ahmad
  • 27,569
  • 23
  • 102
  • 149
  • Does this mean it the database is stored in the same path for both emulation and on the actual device after app download. As for the link to use already created database is not relevent as I cannot use Java, due to my app being compiled using phonegap. Thanks – SingleWave Games Feb 15 '12 at 14:05
  • do you know what the file path is got all my other html pages? Tried - file:///store/home/user/RANDOMAPPNAME/www/ – SingleWave Games Mar 28 '12 at 13:59