Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Android and the fly likes Volley - no response from the URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Volley - no response from the URL" Watch "Volley - no response from the URL" New topic

Volley - no response from the URL

Rama Sundar

Joined: Jun 24, 2013
Posts: 2
I am unable to get any response from the URL I am hitting using the Volley library, please can you help me out ?

I am getting this on my emulator : " length promised 45 bytes, but received 0 ."

I have pasted the code below:

RequestQueue queue = Volley.newRequestQueue(this);

String url = ""

JsonObjectRequest jsObjRequest = new JsonObjectRequest(
Request.Method.POST, url, null,
new Response.Listener<JSONObject>() {

public void onResponse(JSONObject response) {
// TODO Auto-generated method stub
sampletext.setText("Response => " + response.toString());

}, new Response.ErrorListener() {

public void onErrorResponse(VolleyError error) {
// TODO Auto-generated method stub
sampletext.setText( error.toString());


I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Volley - no response from the URL
It's not a secret anymore!