I understand how to make an ordinary calculator with buttons + - * /. But I have difficulties to make a string, where there is one field and a button: 
I do not ask to give the finished code. Please clarify or give a hint how to approach this decision. Will it be correct: to break a mathematical expression into pieces / parts and put each into a variable, and then add it up? Or is there a different approach? I would be grateful for some external resource to read.
public class MainActivity extends AppCompatActivity implements View.OnClickListener { Button buttonCalc; TextView result; EditText task; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); buttonCalc =(Button) findViewById(R.id.btnCalc); } @Override public void onClick(View view) { } } 