java.io.FileNotFoundException - android
Hi,
i have an application which works on htc sensation and iphone but on htc wildfire and samsung galaxy i get this Error:
Error:
Wrapped java.io.FileNotFoundException:
Resources/Managers/Trails.db
(app://Managers/DatabaseManager.js#11)
i think there is some path error or name.
can you give any solutions?
thanks,
Eliza
4 Answers
-
Path to .sqlite file is wrong, you need to provide additional information to get more help (where do you "install" database, where .sqlite file is located, …).
-
Hi Ivan,
i do it in this way :
DatabaseManager.dbHandler = Ti.Database.install('Trails.db', 'trails');
the file Trails.db is in Resources File. -
ive tried ur code and i found that it is having problems with .db , but it is working fine with .sqlite .
-
Hey Eliza, try this: Ti.Database.install('/Trails.db', 'trails');