This is a C language convention of the "If" sentence. Please use Java convention
if (amountProduct.getValue() > 0) {
    amountProduct.setValue(amountProduct.getValue() - 1);
    adapter.notifyDataSetChanged();	
 } else {
    Toast.makeText(getApplicationContext(),
    "Only numbers are valid!", Toast.LENGTH_SHORT)
    .show();
}