I'm trying to get the text of an edittext and convert it to int but I'm facing this error:
android.content.res.Resources$NotFoundException: String resource ID #0x5
the code is very simple:
temp=String.valueOf(editm.getText());
minput = Integer.parseInt(temp);
Toast.makeText(this, minput, Toast.LENGTH_SHORT).show();
temp is a string variable and minput is int type. also I've tried .tostring() & Integer.valueof()
temp?