Languages

Menu
Sites
Language
SOS!!! How can I use an existing database

I have an external database which lie aside my html , and i want access it by the way of  HTML5.just like this:

 

openDatabase("student", "1.0", "table student", 1024 * 1024, function (){});

but the system will detect the default folder of inner web db,how can I specify the path of database so I can access my own database .

Or ,mybe there is a way to get the path of the default folder of inner web db ,and I can move my own database into it then access it .

 

                          Any help is appreciate.

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 Replies
Srinivasa Rao S
Database path can not be given in openDatabase(), you can provide database name only. Default folder of inner web db can not be accessed by any application. I will get back to you,If I find any alternative solution for this.
tattoo wu
I have the same problem,and how to install my local db to device ,then get the db path in web app?