Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

So I am getting an error like this. I have also uploaded the Logcat in this question. I also have my SQLite Database file. So

So I am getting an error like this. I have also uploaded the Logcat in this question. I also have my SQLite Database file. So you can see why. The Logcat where there are two blue lines that is the place where it gives error on that lines. So Ill be also uploading that too. The code lines where it gives error.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
Process: com. furkanayi lmaz . password locker lastprojectoffurkanayilmazmade, PID: 763 android. database. sqlite. SQLiteException: table selamabi has no column named Password (code 1) : , while compiling: INSERT INTO selamabi(Username, Title, Password, Email, Website) VALUES (?, ?, ?, ?, ?) at android. database. sqlite. SQLiteConnection. nativePrepareStatement(Native Method) at android. database. sqlite. SQLiteConnection. acquirePreparedStatement (SQLiteConnection. java: 889) at android. database. sqlite. SQLiteConnection. prepare(SQLiteConnection. java:500) at android. database. sqlite. SQLiteSession. prepare(SQLiteSession. java: 588) at android. database. sqlite. SQLiteProgram. (SQLiteProgram. java:58) at android. database. sqlite. SQLiteStatement. (SQLiteStatement. java: 31) at android. database. sqlite. SQLiteDatabase. insertWithOnConflict (SQLiteDatabase. java: 1472) at android. database. sqlite. SQLiteDatabase. insertOrThrow(SQLiteDatabase. java: 1369) at com. furkanayilmaz . password locker . PasswordsDao. PasswordAdd ( PasswordsDao. java: 65) at com. furkanayilmaz . passwordlocker. MainMenu$4. onClick(MainMenu. java:203) at androidx. appcompat. app. AlertController$ButtonHandler . handleMessage(AlertController. java: 167) at android. os. Handler. dispatchMessage(Handler. java: 102) at android. os. Looper. loop (Looper. java: 154) at android. app. ActivityThread. main (ActivityThread. java: 6077) at com. android. internal. os. ZygoteInit$MethodAndArgsCaller. run(ZygoteInit. java: 866) at com. android. internal. os. ZygoteInit. main(ZygoteInit. java: 756)import android. content. Context; import android. database. sqlite. SQLiteDatabase; import android. database. sqlite. SQLiteOpenHelper; public class Veritabani extends SQLiteOpenHelper { public Veritabani (Context context) { super ( context, name: " : "selamabi. sqlite", factory: null, version: 1) ; @Override public void onCreate(SQLiteDatabase sqliteDatabase) { sqliteDatabase. execSQL("CREATE TABLE \\"selamabi\\" (\ " + "\\t\\"password_id\\"\\tINTEGER PRIMARY KEY AUTOINCREMENT, \ " + "\\t\\"Title\\"\\tTEXT, \ " + "\\t\\"Username\\"\\tTEXT, \ " + "\\t\\ "Password1\\"\\tTEXT, \ " + "\\t\\"Email\\"\\tTEXT, \ " + "\\t\\ "Website\\"\\tTEXT\ " + " ) ;") ; @Override public void onUpgrade (SQLiteDatabase sqliteDatabase, int i, int il) { sqliteDatabase. execSQL("DROP TABLE IF EXISTS selamabi") ; onCreate(sqliteDatabase) ;\f\f

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions