Double x=Double.parseDouble(textview.getText().toString());
Double y=Double.parseDouble(edittext.getText().toString());
Double z=x*y;
finalcost=z+costofevents;
or is their any new way to find two value and add to finalcost object
Double x=Double.parseDouble(textview.getText().toString());
Double y=Double.parseDouble(edittext.getText().toString());
Double z=x*y;
finalcost=z+costofevents;
or is their any new way to find two value and add to finalcost object
If Double.parseDouble(...)
is what causing problem then try converting String to Double like
Double.valueOf(textview.getText().toString());
Edit:
Also make sure you have declared your TextView
and EditText
properly.