Skip to content Skip to sidebar Skip to footer

Android Application Won't Start

Everytime I try to run my application it shows up a dialog saying application has stopped unexpectedly, both on phone and emulator. The program has no errors and i've tried cleanin

Solution 1:

Having a quick look at your logcat exception I can see an SQLite error on this line:

_db.execSQL(LoginDataBaseAdapter.DATABASE_NAME);

What you are trying to do is to execute an SQL with the data base name "seniorLUBA.db" only, which is not a valid SQL. Try removing that line.

You should place valid SQL statements under the onCreate method of your dataBaseHelper class only if you need to initialize the DB or perform some other custom logic for your DB.


Post a Comment for "Android Application Won't Start"