Hello, Im really new to Android. I'm developing a BMI Calculator. I did the coding, but I'm receiving an exception as I can't parse integer values.
This is my interface and my coding. Please help me with this.
thanx loads
Best Regards
Isuru Uyanage

public class Main extends Activity {
/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {

EditText et1=(EditText) findViewById(R.id.editText1);
String heightS=et1.getText().toString();
int height=Integer.parseInt(heightS);

EditText et2=(EditText) findViewById(R.id.editText2);
String weightS=et2.getText().toString();
int weight=Integer.parseInt(weightS);

final int bmi=weight/(height*height);

Button cal=(Button) findViewById(R.id.button1);
cal.setOnClickListener(new OnClickListener() {

public void onClick(View v) {
EditText et3=(EditText) findViewById(R.id.editText3);

catch(NumberFormatException nfe){
System.out.println("Could not parse " + nfe);