Reputation: 2205
I'm building an android app who needs to present lots of data received from the web.
Due to the fact that it might take a long time to retrieve all the data and that the user might close the app before the process ends, I've thought about implementing it in a 'Service', store the data within a 'Content Provider' and then to query it from the app when needed.
It's also needed that when new data received, the app gets a notification like an invoked function. Is it available in this pattern?
Is it all right? And if not, What's the best design that matched this problem?
Thanks a lot!
Upvotes: 0
Views: 226
Reputation: 8079
Yes,using a content provider like.. sqlite database.. will suit the situation you are explaining... If you use a sqlite database.. be careful while accessing data... because your service will be updating the database..
Upvotes: 1