Multiple network request in activity one after another

253
July 12, 2017, at 05:41 AM

In my Activity I have to make request 5 times to the server on a click event, one after another and do some processing with the data. This tasks will show a loading message (the task it is currently doing) and a Progressbar (for showing the combined tasks progress). So, after completing each request and data processing I will update the loading message and the Progressbar. Currently I am thinking about applying it using Thread and Handler. Is it the best way to do so?

Answer 1

You can use retrofit or volley library to make concurrent request like each request success will make another request

Rent Charter Buses Company
READ ALSO
Concurrent programming (Java) List Manager program [on hold]

Concurrent programming (Java) List Manager program [on hold]

The class ListManager that manages two integer lists, together with its constructor is givenThe methods of this class must support concurrent access to the data set

320
Log function call on new line in Java and C#

Log function call on new line in Java and C#

I have a logging function in CSharp and Java that I use in walking the stackHow do I make each log print to a new line only

378
How do I log the user who has used their credentials to login in my Java SE application? [on hold]

How do I log the user who has used their credentials to login in my Java SE application? [on hold]

I have an application in Java SwingIt first shows a login form(username and password), then displays the main program

275
How to check if child equals a specific value from firebase & use intent? [on hold]

How to check if child equals a specific value from firebase & use intent? [on hold]

can you help me in this problem: I want to send users by intent based on their information in firebase that they chose when they signed up

271