I'm creating an android app which has single activity for now. This activity calls an api to get JSON response and populate the Fragments. Once the JSON response is received I am updating the data set and notifying adapter. Currently the JSON request is called in onCreate
method.
Similarly in each fragment I need to load image from network so I am wondering will it too should be put in onCreateView
or someplace else?
I'm interested in knowing what is the best practice to achieve this.