Good, I have the following problem only on certain occasions. The app brings information from an external url by means of a Volley request taking the data from a php file with json data. Of 900 devices I had a problem in 17, it is little but there is an error. Mostly the errors come from Galaxy devices.
The lock I see from playConsole:
java.lang.NumberFormatException:
at java.lang.Integer.parseInt (Integer.java:620)
at java.lang.Integer.parseInt (Integer.java:643)
**at com.miapp.yamil.miapp.jugar.onResponse (jugar.java:319)
at com.miapp.yamil.miapp.jugar.onResponse (jugar.java:42)**
at com.android.volley.toolbox.JsonRequest.deliverResponse (JsonRequest.java:83)
at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run (ExecutorDelivery.java:106)
at android.os.Handler.handleCallback (Handler.java:789)
at android.os.Handler.dispatchMessage (Handler.java:98)
at android.os.Looper.loop (Looper.java:251)
at android.app.ActivityThread.main (ActivityThread.java:6589)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:767)
In these lines I have a conversion from String to Int
*numero.setText(relleneo.getNumero());
numeros=Integer.parseInt(numero.getText().toString());*
number comes from the volley query and is filled in
*relleneo.setNumero(jsonObject.optString("CodPreg"));*
I can not detect what the problem is because it happens only every so often.
Not: I add, users told me that when this happens the app stops and closes alone.