Last active
August 29, 2015 14:19
-
-
Save fatorx/cb1d737d10fda160afaf to your computer and use it in GitHub Desktop.
Android Volley - postar uma string json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// o terceiro parâmetro é uma string json | |
JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, url, paramsPost, | |
new Response.Listener<JSONObject>() { | |
@Override | |
public void onResponse(JSONObject response) { | |
//onPostExecute(response); | |
} | |
}, | |
new Response.ErrorListener() { | |
@Override | |
public void onErrorResponse(VolleyError error) { | |
Log.i("LOAD NOT WORK!", "Message:" + error); | |
} | |
}); | |
queue.add(jsonObjectRequest); | |
queue.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment