Ok
try {Log.d("request!", "starting"); // getting product details by making HTTP request JSONObject json = jsonParser.makeHttpRequest(LOGIN_URL, "POST", params); // check your log for json response Log.d("Login attempt", json.toString()); } } catch (JSONException e) {
//ERROR WHEN INERTING CODE HERE!.
}<code>
Hi guys!, I just want to know why my app crashes when I write code in the indicated place (see above).. If I leave it blank, nothing happens...
The thing is, I want to show a
Toast.makeText(MainActivity.this, "Couldn't reach the server", Toast.LENGTH_LONG).show();
Why do you think that is?. Thanks in advance