When I try to test my app, I get an error.
FATAL EXCEPTION: main Process: com.example.android.lab5, PID: 12261 android.content.res.Resources$NotFoun
lblMin.setText(jour.getmTempMin());
lblMax.setText(jour.getmTempMax());
You're calling setText(int)
that expects a resource id. To use setText(CharSequence)
instead, you can change the code to e.g.
lblMin.setText(String.valueOf(jour.getmTempMin()));
lblMax.setText(String.valueOf(jour.getmTempMax()));
You need to use a String. This worked for me:
lblMin.setText(Integer.toString(jour.getmTempMin()))