reset password
Author Message
eochoa13
Posts: 5
Posted 13:56 Jul 26, 2017 |

Mark,

I have a couple questions about the news app homework:


1) are we only supposed to update the database every minute or refresh the recyclerview every time we update the db as well? 
2) every time we update the db, should we add to the existing stories or replace them? If we keep adding and we have 100+ stories should we load them all in the recyclerview or just the 20 most recent ones.
3)Lastly is it fine if images take a couple seconds to load? The API we are calling provides large full resolution images so it takes both Glide and Picasso a couple seconds to load them as opposed to the iTunes music search API which  provides thumbnails at optimal  resolutions to be used in mobile apps.

msargent
Posts: 519
Posted 18:10 Jul 26, 2017 |
eochoa13 wrote:
1) are we only supposed to update the database every minute or refresh the recyclerview every time we update the db as well? 
2) every time we update the db, should we add to the existing stories or replace them? If we keep adding and we have 100+ stories should we load them all in the recyclerview or just the 20 most recent ones.
3)Lastly is it fine if images take a couple seconds to load? The API we are calling provides large full resolution images so it takes both Glide and Picasso a couple seconds to load them as opposed to the iTunes music search API which  provides thumbnails at optimal  resolutions to be used in mobile apps.

1. Just update the database. The idea is that fresh data (since the last update) be available when the person opens the app. If they want even more fresh data, they press refresh.

2. Replace them.

3. That's ok.