How to have two tables and store data from those two tables within the same data
ID: 3745716 • Letter: H
Question
How to have two tables and store data from those two tables within the same database in Android Studio? I have a table that stores student information in a database (which works). I have created another table that stores the students tasks within the same database (which I have attempted but does not work). When I enter the tasks and click "Add Task" button, I get an error shown in the image below. I am not storing anything for the radio buttons in the database yet....am not sure how to store radio buttons (I am aware of text and edit text but not radio buttons).
Below are the coding for student information table, student tasks table and the database respectively:
//content_screen2.xml
//Screen2.java
//content_screen3.xml
//screen3.java
//DatabaseManager.java
Explanation / Answer
Firstly uninstall the app from your device then replace the DatabaseMangaer.java file with this:
//It should work perfectly now make sure you uninstall your app first and then reinstall after changing the code.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.