Need help with getting correct output in android studio. There are two screens w
ID: 3744664 • Letter: N
Question
Need help with getting correct output in android studio. There are two screens where the first screen has a button called "Add A Student". When this button is clicked, the app is supposed to move onto the next screen showing a table layout. The first image is what I am trying to achieve and second image is what I am currently getting.
//content_main.xml
//content_main2.xml
//MainActivity.java
//Screen2.java
//DatabaseManager.java
8:00 myproject Student ID First Name: Last Name: Course: Age Address ADD STUDENT CANCEL BACKExplanation / Answer
Hey there , i found the problem in your code:
first of all remove all your code in content_main2.xml and paste the following code:
<!--end of xml code -->
Now in your Screen2.java file do this:
Find this line of code and delete it:
or in case you are not able to find this line just delete your old code in Screen2.java file and paste this code:
//Please comment if you need any help