Please download the attached code and locate MainActivity to open it. This is what i have done so far. I have created separate volley methods in separate classes in order to synchronously call and get JSON and i have successfully achieved that.
The problem is that When calling useDate() in OnCreate method in MainActivity , it is returning an empty array . Why is that? It should be populated with ArrayList data. Am i missing something? According to some debugging, i noticed that the array is populated and then destroyed after 'onNetworkCallFinished' is finished being called.
All what i want is for useDate() to return populated Array while the arrangement/design for the rest of the code to be the same.
I have included all the custom made classes for volley in the project just in case.
Thanks in advance :)
hi, dear manager. I am a mobile application expert. i have already 10+ big apps in service. i am very flexible and honest. welcome u ping me. i will wait for u 24 hrs. fine thanks.