I'm brand new to android app developing but have background in Java. I decided my first app would be a simple calculator.
My current set up is just trying to add two numbers together. But whenever I hit the addition symbol my app crashes. There aren't any errors in the code. And I don't see anything logically wrong with it. Any ideas on what could be going on? It seems to not like either calling my getNumbers method, or filling my declared variables with the input I'm getting.
My logic goes: create two integers (firstNumber and secondNumber), when the add button is clicked after the first input I fill firstNumber with the inputTextView number via my getFirstNumber method, then I'll clear inputTextView and repeat for when the equal button is clicked, clear inputTextView and display firstNumber + secondNumber.
My current set up is just trying to add two numbers together. But whenever I hit the addition symbol my app crashes. There aren't any errors in the code. And I don't see anything logically wrong with it. Any ideas on what could be going on? It seems to not like either calling my getNumbers method, or filling my declared variables with the input I'm getting.
My logic goes: create two integers (firstNumber and secondNumber), when the add button is clicked after the first input I fill firstNumber with the inputTextView number via my getFirstNumber method, then I'll clear inputTextView and repeat for when the equal button is clicked, clear inputTextView and display firstNumber + secondNumber.