Slow Json parsing in android | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Slow Json parsing in android

I am using WordPress rest API to fetch data and I am only fetching 10 posts at a time using volley. When I request API in the browser it gives me a result under 6-7 seconds... But my app takes more than 15 sec to show that 10 posts. I set a connection timeout in 30 seconds..and asks to retry. Sometimes, I have to retry 1-2 times. Which Means sometimes it takes more than 1 minute to show data. Code:- https://code.sololearn.com/c2WMufDCX4TI

18th Aug 2020, 9:54 AM
Manjit Kumar
Manjit Kumar - avatar
1 Answer
0
u could try this: set more time using your volley lib. using other lib like retrofit with +ok http also more time. and test time request in postman maybe.
26th Aug 2020, 12:41 AM
Roger C
Roger C - avatar