How to get my local database with openDatabase()

How to get my local database with openDatabase()

BY 07 Mar 2013 Web Application Development

Hi,everyone

I have a big trouble now!

I‘m developing a web application for tizen and I have my own database named “citylist.db”,

now I want to install citylist.db to tizen with my web app installing,

then use openDatabase() function to get it,

I know the first parameter of the openDatabase() function is database name, like

openDatabase(“citylist”, ‘1.0’, ‘city list’, 8*1024*1024);

but when I use “citylist” or “citylist.db”,it doesn’t work,it can’t find the db,and it creates

a new blank db as the same name with my db “citylist.db”,

But how can I read my own citylist.db ,how can I make openDatabase() know that

citylist db is exist?

Any answer is welcome! Thx!

Written by