1

I am new to android programming.
* I downloaded and installed phonegap, made the hello world application which worked.
* I downloaded sencha-touch2 and created an application under the www folder of the hello world application.
* I merged between the phonegap index.html and the index.html I got from sencha-touch2.
* I ran the android application and tried the following in the main java code:
- I set the flag of database enabled using the appView.
- I tried to set the path of the database.

However, in any case, I arrive to the following message:

04-30 08:19:25.638: I/SqliteDatabaseCpp(14447): sqlite returned: error code = 14, msg = cannot open file at line 27701 of [8609a15dfa], db=/data/data/com.phonegap.hello/databases/webview.db

Please help !

1

1 Answer 1

0

This is a popular bug and I don't know why Android Team doesn't fix it. You should use this way to check if your database exist:

public boolean databaseExist()
{
    File dbFile = new File(DB_PATH + DB_NAME);
    return dbFile.exists();
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.