The Error in the Logcat:
Part of the code:
MainActivity. Java
DatabaseHelper. Java
Deal. Java
I change after deployment file to login interface (index) as the main page can display, can return to the login screen (MainActivity), then click login again even if you don't enter account password can jump to the login interface success, but when the home page is MainActivity, click login directly back to mobile phone desktop,
Various gods, please help me take a look at what is the problem, thank you!!!!!!!!!!
CodePudding user response:
Program to open the memory read and write access
CodePudding user response:
Opened and another project can run successfully
CodePudding user response:
reference 1st floor WLDRZX response: program to open the memory read/write permissions? Opened and another project can run successfully CodePudding user response:
It says your permit table does not exist, CodePudding user response:
See error message is not permit this table, you can check whether there is this list first! CodePudding user response:
reference 4 floor qq_20330595 response: it says your permit table does not exist, Can I use the SQLiteDatabase db=dbHelper. GetWritableDatabase (); DbHelper=new DatabaseHelper (this); DbHelper. OnCreate (db); Want to establish a database, and debugging is nowhere flash back directly, CodePudding user response:
reference 5 floor q12q1ty reply: see error messages is not permit this table, you can check whether to have this form first! Can I use the SQLiteDatabase db=dbHelper. GetWritableDatabase (); DbHelper=new DatabaseHelper (this); DbHelper. OnCreate (db); Want to establish a database, and debugging is nowhere flash back directly, CodePudding user response:
Reduction under the scene, you have to create the database before, but nothing to write in the onCreate, only after the code is added in the onCreate, but because the database already exists, so the onCreate won't run, then there is no permit table, so just can have the top mistakes, namely permit table does not exist After you think wrong, unloaded the application, change the home page, running to permit table existed, but you get your name and the word is in the original, is an empty string, to the point and what is the difference between lose don't lose account password The last SQLiteDatabase db=dbHelper. GetWritableDatabase (); DbHelper=new DatabaseHelper (this); DbHelper. OnCreate (db); Run the flash back, because you already have permit table in the database, to build is a death, add a IF NOT EXISTS! Whether very bullshit CodePudding user response:
Deal Deal=new Deal in the onCreate method, is not in the listener CodePudding user response:
refer to the eighth floor xw13782513621 response: reduction under the scene, you have to create the database before, but nothing to write in the onCreate, only after the code is added in the onCreate, but because the database already exists, so the onCreate won't run, then there is no permit table, so just can have the top mistakes, namely permit table does not exist After you think wrong, unloaded the application, change the home page, running to permit table existed, but you get your name and the word is in the original, is an empty string, to the point and what is the difference between lose don't lose account password The last SQLiteDatabase db=dbHelper. GetWritableDatabase (); DbHelper=new DatabaseHelper (this); DbHelper. OnCreate (db); Run the flash back, because you already have permit table in the database, to build is a death, add a IF NOT EXISTS! Whether very bullshit Ok thank you I'll go to try CodePudding user response:
Built table will have to delete it,,,,,,,,,,,,,,,,,,,,,, CodePudding user response:
See error message is not permit this table CodePudding user response:
Hello, problem solved