Click here to Skip to main content
15,903,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This was the question i posted in stack overflow , you can see in depth the whole thing and can understand through this link.

"https://stackoverflow.com/questions/56556474/accessing-retrofit-2-data-outside-on-response"



Dont know if some thing i am doing wrong or correct in my approach please explain.

What I have tried:

tried posting on stack overflow and got no response. The link is provided for futher details.
Posted
Updated 13-Jun-19 19:31pm
v2
Comments
David Crow 14-Jun-19 9:23am    
So when you stepped through the code using the debugger, what did you discover?
Member 13535164 15-Jun-19 1:36am    
in app A inside the on response method receiving the response body and data gets filled to the activity public variables. On finish of on response method the variables data values still persist.
In app B the data values are only accessible in side on response and on finish of on response data values do not persist and becomes null.
David Crow 15-Jun-19 13:44pm    
At what point are you adding the contents of mGamesName to the NewAdapter object?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900