i have EditText in my program
my code:
Double Hi;
private EditText MyHight;
MyHight = (EditText) findViewById(R.id.editText1);
i need to insert to Hi the value on MyHight
i try this:
MyHight.getText().toString();
Hi= (Double)MyHight;
but i got error on casting
how to fix it ?
Try with: