• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to calculate a formula entered into an edittext?

Hey,
I remember seeing a tutorial a few months back that I cant seem to find anywhere :(
Basically, theres a single EditText, Button, and TextView, and an onClickListener takes the formula that is entered into the EditText (Example: (5^12(6.3+12) / (12 * .01)) ) and it would calculate it and output the answer on the TextView. If anyone can explain how to do this, or link me to the tutorial, it would be greatly appreciated!
Thanks!
 
Back
Top Bottom