// By adding empty string "", setText work properly with int because the int automatically converted to string inputField.setText(intVariable + "");
TextView text1 = (TextView) findViewById(R.id.calories); text1.setText(""+productCalories);