This will do what you want, although you probably want to inform the user with a toast message or something rather than quietly doing nothing when the input values aren't valid strings.
et1 = (EditText) findViewById(R.id.et1);
et2 = (EditText) findViewById(R.id.et2);
et1.setOnFocusChangeListener(new OnFocusChangeListener() {
public void onFocusChange(View v, boolean hasFocus) {
if (hasFocus) {
try {
floatET2 = Float.parseFloat(et2.getText().toString());
} catch (NumberFormatException e) {
}
float sonuc1 = floatET2 * 60;
et1.setText(String.valueOf(sonuc1));
}
}
});
et2.setOnFocusChangeListener(new OnFocusChangeListener() {
public void onFocusChange(View v, boolean hasFocus) {
if (hasFocus) {
try {
floatET1 = Float.parseFloat(et1.getText().toString());
} catch (NumberFormatException e) {
}
float sonuc2 = floatET1 / 60;
et2.setText(String.valueOf(sonuc2));
}
}
});