I´m currently working on a currency converter project for school. I have an array with currencies (USD,EUR etc) and one with values (6.54, 9.56 etc).
I have two spinners and one EditText and you choose From
unit in one spinner and To unit in the other. Then it should consider the amount in editText and show the "live" result in textView. If you change spinners or editText the value in textview should update directly.
Let's say that the value inserted in editText is 10.0, and we want to convert it from USD to EUR, the calculation will look like this: 10.0*6.54/9.56=
But I can't figure out how to add the editText in to the calculation. And I also get an error message saying I have an empty
String
Here is the error log: