As decided in T119278, we will be using Method D: Search for existing pics at that location" strategy (with expanding radius) on the Commons MediaWiki API.
**Meeting with @Niedzielski (20 Dec): **
Discussed options for implementing the http requests asynchronously. The options we considered were:
1) Use either a) Volley or b) MwApi + AsyncTask
2) add a third networking library to the project
1a) appears to be the ideal option, however the project doesn't have any good examples of using that and might need some refactoring to expose request queue. 1b) is less ideal but the project has a number of examples that could easily be mimicked to achieve the requests needed. 2) might be venturing further into uncharted waters and adding another networking lib to the project may convolute networking even more
We decided on trying 1a) first, then reverting to 1b) as backup if the former proves to be too difficult to implement in time. Also discussed output format, which will be XML for ease of use with current implementation. I plan to reuse the current XPath retrieval code in org.mediawiki.api.MWApi.java .
**Edit 21 Dec 15** : Will try JSON for response format instead, as it is more standard for Android apps and Volley seems to have inbuilt support for JSON objects but not XML. Trying to construct a Category model for responses.
**Edit 22 Dec 15** : Current state of code can be found at https://github.com/misaochan/apps-android-commons/tree/api-calls