Hi,
we are trying to develop an application on android we are using SQLite Database and on phone we are getting SQLiteException:no such table. but, it is working fine on simulator.
Can anyone provide any input on this?
Hi,
we are trying to develop an application on android we are using SQLite Database and on phone we are getting SQLiteException:no such table. but, it is working fine on simulator.
Can anyone provide any input on this?
Have you run your code on a clean emulator? Have you also verified that the code that creates the table is getting executed? The next step would be to get the sqlite db off the emualtor and look at it using a sqlite database browser to check that the table does actually exist.
If you don't specify the database file name correctly I believe it falls back to creating an empty database. This is generally the cause of 'table not found'. Check your path and database file name.