AMM
AMM

Reputation: 2205

Android app software design about handling data repository

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

Answers (1)

5hssba
5hssba

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

Related Questions