We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am writing an Android phone app that requires user input. I simply want to enter a number in two fields. Make some calculations and print to two output fields. I cannot seem to get started on how to get user input. Seems like it should be simple. It is in other languages I am familiar with. Processing is new to me and I just can't get the input.
Comments
A pity Processing devs don't see a need to include user's typed in input in its official API. :(
Dunno about Android but, in Java, I'd use JOptionPane for some dirty & quick solution: *-:)
https://docs.oracle.com/javase/8/docs/api/javax/swing/JOptionPane.html
Moved to Android category where you are more likely to get answers...
@ PhiLo :: yes, because javax.swing.JOptionPane.* with android... so : you can create an editText (you can do that easily with APWidgets lib) create also some done button (to tell when user considers that everything == ok then from the field created get the text entered by user with .getText() then apply the same "compare methods" than PhiLo (or simplifying because its StringList with "pure android" will not work, so create a standard arrayList) then instead of showMessageDialog() make a switch and a toast message, like in a login.