I\'m connecting to a rest api in my android project. Println (carList) in getCars function in MyClass gives correct output but returns an empty list. no problem in Rest API.