Sagar Suri
1 min readAug 7, 2018

--

I believe you should be using the Repository pattern for handling all the data stuff. Like whether to get data from database or fetch fresh data from network. This way you can better architect your android project. Writing the network logic in Activity is not good. Activity sole purpose should be only looking for data to bind it to the view.

--

--

Sagar Suri
Sagar Suri

Written by Sagar Suri

Google certified Android app developer | Flutter Developer | Computer Vision Engineer | Gamer

Responses (1)