Hello,

I have a design question and I was wondering if you could give me some
advice on best practices. I want to build a series of games, who share
the same framework. They are supposed to store scores and statistics
about different users in their own databases. The games are different
Android applications but the user should be able to access a
Statistics activity from each of them. This Statistics activity should
be the same on all games and should tell the user what her score is
and be able to show statistics across all games (applications)
installed. Given that each game would store its own database of user
statistics, the question that arises is where to aggregate the
statistics and where to store this aggregate data. While the
computation of the aggregate statistics could be done in each of the
applications (through Content Providers), the problem that I can't
find a decent answer to is: where do I store the data?

If I store the aggregate data in a database of one of the applications
(let's say the first game that the user installs), then what happens
when the user decides to stick with game number 2 and uninstall the
first one? Then the aggregate data gets deleted.

Another option would be to store the aggregate data on an online
server and then the applications would only have to talk to each other
to calculate this data before sending it to the server. Making the
applications talk only to the server and not each other is another
option but it's rather more inefficient to do all the aggregation of
the data on the server.

My question here would be: is there a way to store the aggregate data
in a database on the device that is independent from the applications?
A database that would exist as long as at least one game is installed
but would be deleted when the last game is uninstalled.

Does anyone have any experience with such an architecture?

Thank you,

Stefan

-- 
Stefan Anca

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to