これは値を TextView に設定する私のコードです
enter code here
public void addHours(View view){
final TextView mTextView = (TextView) findViewById(R.id.newHours_Value);
String hourValue = R.id.enterHours.getText().toint();
mTextView.setText("hourValue");
}
しかし、 R.id.enterHours.GetText() でエラーが発生します
プリミティブ型 int で getText() を呼び出せません
私は何を間違っていますか。