Android - Fragment Opens before data is ready

Asked

Viewed 28 times

0

I have a problem with a list of objects that comes in a JSON, I can get the data, it comes, they should be presented in a Fragment that has a Recyclerview, the app opens and shows nothing. When analyzing the logs I realized that the Fragment opens before the data is ready.

I don’t know how to fix this.

  • I believe you should take the data already inside the Fragment, put your code that gets better

  • Look at this reply to a similar situation.

  • Read this: https://pt.meta.stackoverflow.com/a/5510/132

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.