Click here to Skip to main content
14,603,936 members
Rate this:
Please Sign up or sign in to vote.
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100