Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 at android.content.res.Resources.getText(Resources.java:356) code example

Example: android.content.res.Resources$NotFoundException: String resource ID #0x0

(Just assumption, less info of Exception stacktrace)

I think, this line, incercari.setText(valIncercari); throws Exception because valIncercari is int

So it should be,

incercari.setText(valIncercari+"");
Or

incercari.setText(Integer.toString(valIncercari));

Tags:

Misc Example