Tara = (EditText)findViewById(R.id.txtTaras);
Tara.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
@Override
public void afterTextChanged(Editable s) {
if(Tara.getText().length() > 0 && Peso.getText().length() >0) {
double rPeso = Double.parseDouble((Peso.getText().toString()));
double rTara = Double.parseDouble((Tara.getText().toString()));
double resta = rPeso - rTara;
Preal.setText((int) resta);
}else{
Preal.setText("");
}
}
});
pero me marca error,
android.content.res.Resources$NotFoundException: Resource ID #0x
alguien que me ayude a solucionarlo.