Hi
I use necessitas to write a database application for Android. There is an error when opening the SQLITE database. To track the error, the app writes debug strings to QListWidget debugWidget.
Qt Code:
QSqlDatabase winebase; QString databaseFile; debugWidget->addItem(databaseFile); winebase.setDatabaseName(databaseFile); debugWidget->addItem(winebase.isValid() ? QString(QLatin1String("winebase valid")) : winebase.lastError().text() + QLatin1String(" wb error"));To copy to clipboard, switch view to plain text mode
The database file exists, but winebase.lastError().text() is "Driver not loaded Driver not loaded" (presumably duplicated because QSqlError::text() concatenates error strings from databaseText and driverText).
How to install QSQLITE driver on Android device?
Hard- and software details
device: Acer iconia Tab A500 running
OS: android 3.1 Honeycomb (i.e., API level 12)
QtCreator: with necessitas 4.7.62.1, libraries installed on device using ministro
Desktop OS: Ubuntu natty
Al_
PS: application runs fine on desktop
Added after 41 minutes:
After some further google searches, it seems that somebody found a solution, see https://groups.google.com/forum/#!to...qt/YkwoA42_mzU (answer of Anonymous, 18-Aug-2010). However, I do not find androidconfig.sh (Linux:/$ sudo find . -name androidconfig.sh returned nothing).
Has the file androidconfig.sh been renamed since Aug 2010? Where should it be located?
Al_
Bookmarks