0
I created an app that gives the value of X and Y in a two-variable linear system. Using these (https://www.youtube.com/watch?v=CnlwBwMiFQw and https://www.youtube.com/watch?v=faegDgN7wX4) tutorials, in another project, based on the old one and added a tab to perform the procedure with three variables, and the Fragment that does it is still empty. Well, I used the same method that makes the calculation, making the proper statements. The problem is that when you are going to convert the Edittext element to String, the app stops, and it works perfectly in the old project...
x = readX.getText().toString();
x2 = readX2.getText().toString();
y = readY.getText().toString();
y2 = readY2.getText().toString();
tInd = Ind.getText().toString();
tInd2 = Ind2.getText().toString();
Mains completas: Old project: https://github.com/InsideMuz/SistemasLinearesS/blob/master/app/src/main/java/com/insidemuz/sistemaslineares/Main.java New project: https://github.com/InsideMuz/Justaproject/blob/master/app/src/main/java/com/insidemuz/justaproject/MainActivity.java
– Hugo Passos
Please try to insert the error that is happening into the question, for better understanding.
– viana
I don’t understand your problem...
– Jorge B.
Must be missing
readX = (EditText) findViewById(R.id.......);
– ramaral
I put, ramaral, exactly as it is in the old.
– Hugo Passos
Guys, I’ve made the two Mains available in case you want to see if there’s any inconsistency in the code. The method that onclick performs is mathIt, and the app stops immediately after conversion to string. I will try to provide a ADM to run the app and see which error it returns.
– Hugo Passos