priyanshi bhardwaj

Ranch Hand
+ Follow
since Mar 29, 2017
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
16
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by priyanshi bhardwaj

Thanks!! It is resolved now.
6 days ago

Ron McLeod wrote:
try {
           JSONArray jsonArray=new JSONArray(responseBody);
           System.out.println("msg"+jsonArray);
       }catch (JSONException e){
           e.printStackTrace();
       }
}
}



How can I convert response.body() to string because response.body.string is no longer in use .
1 week ago

Ron McLeod wrote:Please post the entire stack trace,




Stack Trace is for this particular code



And How can I check JSON VERSION?
1 week ago

Ron McLeod wrote:Try writing response.body() to the log to verify that you are working with a properly formatted JSON payload.


Already done that JSON is properly formatted.
1 week ago

Ron McLeod wrote:Your JSON message has errors.  The are missing " symbols for the country field values.

Still getting same message
1 week ago

Adrian Grabowski wrote:I use org.json for this, it has JSONArray which does exactly what you want.


Already done this it is throwing error
   

org.json.JSONException: Not a primitive array: class java.util.ArrayList


1 week ago

Matthew Keller wrote:I am having trouble telling if you are receiving this json on the server or in the browser.  In the browser you can use eval() to turn the json into an object, then access it by using dot and array notation.


I am receiving this data in my java file(client side) of my android and then I will be pushing it into my db and fetch that data from it and display it in my xml.
1 week ago
Hi,I am trying to map a response body from an api and use that response body in my app.My API returns an array of Objects.I am using retrofit to use this response body.Still not able to use it.
  I want to deserialise this data How can I do this?
1 week ago
Hi I am using a toolbar from androidx to display the error.I was successfully able to implement it but I am having problem in it's alignment.View which I want is
1.relative layout containing 1.textview 2.image 3.image
2.below this another relative layout with two radio buttons below this
3.toolbar should appear (whenever error occurs in validation)
1 2 3 are inside a collapsing tool bar and tool bar is in action bar( as in the code snippet)
below this tool bar I have a nestedscroll bar which have a linear layout ,recycler view ,and another linear layout.
Now the problem which I am facing is toolbar is overlapping my radio buttons how can I set it .I have shared my code snippet below Do have a look at it.And suggest something.
2 weeks ago

Tim Moores wrote:The library we were talking about earlier looks like it supports "null" as a reference to the animation object; in other words, no animation at all.

In fact, a new release of it has come out recently that specifically mentions "Add support to disable enter/exit animations". That sounds like something you should check out.


Yes I am aware about it.Thanks
2 weeks ago

Randy Tong wrote:Perhaps it should be this ?



Still not working.
2 weeks ago
Hi I am trying to implement click event in xml with data binding.But it's not working.

This log is also not getting printed in my logcat.
2 weeks ago

priyanshi bhardwaj wrote:

Tim Moores wrote:That's not setting the animation to null - have you tried that?

I didn't get you.Can you tell in detail what you are saying.

Are you trying to say null animation....I don't know how we write a null animation.
2 weeks ago

Tim Moores wrote:That's not setting the animation to null - have you tried that?

I didn't get you.Can you tell in detail what you are saying.
2 weeks ago