1
for(TrackOrderModel trackOrderModel : ordersList)
{
    order_id = trackOrderModel.getOrder_id()
    //this is the method which calls API service
    getDetails(order_id);
}

A simple for loop to get order details of given order id. But I'm facing the issue that API is not calling in the loop it's calling after the completion of the loop.

Markus Kauppinen
  • 3,025
  • 4
  • 20
  • 30
Arsee
  • 283
  • 5
  • 20

0 Answers0