I used to think that the code either works or not. But it was not there)
I am writing an application, such as a store, on the emulator everything works clearly, there are never glitches. When I test on mobile via wifi, it works 3-5-7 times, like when, it has its own atmosphere. When I test on mobile via the mobile Internet, the necessary elements are not loaded at all.
Wryly this part is loaded, where different views are formed depending on the email and are selected on the server.
StringRequest request = new StringRequest(Request.Method.POST, select_all, new Response.Listener<String>() { @Override public void onResponse(String response) { try { JSONObject jsonObject = new JSONObject(response); JSONArray jsonArray = jsonObject.getJSONArray("image_info_table"); int sum=0; for(int i=0;i<jsonArray.length();i++){ JSONObject info = jsonArray.getJSONObject(i); Item item=new Item(); item.setItem_name_Cart(info.getString("name")); item.setImage(info.getString("path")); item.setQuantity(info.getString("quantity")); item.setPrice(info.getString("price")); item.setSpinner_size(info.getString("size")); array.add(item); } } catch (JSONException e) { e.printStackTrace(); adapter.notifyDataSetChanged(); } } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { } }) { @Override protected Map<String, String> getParams() throws AuthFailureError { Map<String, String> parameters = new HashMap<String, String>(); parameters.put("email", email.getText().toString()); return parameters; } JSON catches, but this subsequent transfer and incomprehensible work puts me in a stupor. Maybe due to the fact that I have Meizu on Flyme and something the Chinese have namuduli there, or some kind of overloaded part of the mysql php .
What can be the purely theoretical reason, on the emulator it works well, maybe because the computer has more resources or what?