reset password
Author Message
febielgiva
Posts: 11
Posted 16:26 Apr 28, 2016 |

Hello Professor,

 I have a question regrading Home Work 1 as listed below.

1.On creating view for first time,do we have to initialize the View elements with sample movie title? so that when the refresh button is clicked the API call should be done and actual movie name should be fetched.

                            or                        Do we have to run the background task for displaying the view elements even for first time and as well as after refresh button is clicked .?

In the latter case how will you test that the changes in the List View is done due to the click of refresh button, since this API fetches same set of Movie Title always(its not a frequently updating API)

msargent
Posts: 519
Posted 16:35 Apr 28, 2016 |

Leave so it shows a blank screen when the app first loads (or you can put obviously fake data if you want), and populates the listview with data on refresh. 

febielgiva
Posts: 11
Posted 17:31 Apr 28, 2016 |

okay , Thank u Professor.