mhahnenberg / NAQT-Scoresheet-for-Android

Application for calculating and tracking quizbowl scores and statistics.
Apache License 2.0
4 stars 1 forks source link

More robust team management #2

Open avram opened 13 years ago

avram commented 13 years ago

Team names and rosters should be fully editable, and it should be possible to import them to save time.

avram commented 13 years ago

As for imports, I can make QBSQL send JSON representations of teams and their rosters. No good reason to make scorekeepers type out all the names every time.

mhahnenberg commented 13 years ago

Team names and rosters are already editable (tap on the team name to edit and use the add/remove player feature view the options menu). A better interface for inputting the data could be in order though, especially team names--it's not immediately obvious that you can change them, and I was never satisfied with it originally.

A way to grab names and rosters from somewhere could be useful. How might this work on the client side?

mhahnenberg commented 13 years ago

Potential issues I see is the ability of the user to figure out where to import things from. Do they have to remember a specific URL that the stats room at the tournament gives them before every round? Or does the app automagically fetch some list for them to choose from? Also, importing every team member from the beginning of the game could potentially make the way we currently handle substitutions even more of a hassle.

avram commented 13 years ago

As for the subs issue, the game-team and tossup-team attributes, as produced in the JSON post data, should do the trick.

It's possible to make an Android app respond to a specific protocol handler, like in the app I'm working on, which is called when the app makes a request for zotero://. The protocol scheme is defined here: https://github.com/ajlyon/zandy/blob/master/AndroidManifest.xml#L18 and the routine that handles it is here: https://github.com/ajlyon/zandy/blob/master/src/org/zotero/client/ZoteroActivity.java#L132

That would make it possible for any site to just provide links that would activate the scoresheet, and pass it info on where to get its data (and post its data).