The default datasources in mixare are currently hardcoded and duplicated in multiple places (DataSources, MixContext and MixView).
And in order to have a DataHandler plugin (A plugin that handles the json/xml data from a url), we need to have the datasources on a single place I.E. A ContentProvider or a text file.
The current datasources have this format:
NAME | URL | TYPE | DISPLAY | VISIBLE
An example of a datasource string:
Wikipedia|http://ws.geonames.org/findNearbyWikipediaJSON|0|0|true
The NAME, URL and VISIBLE property are easy to configure. But the TYPE and DISPLAY properties of the url above are currently hardcoding to a [0 = WIKIPEDIA] type and [0 = CIRCLE_MARKER] display.
I was thinking about having the TYPE and DISPLAY property derrived from the url and json/xml data. So I can make DataHandlers according to the TYPE property and markers according to the DISPLAY property.
Furthermore, I was also thinking about a ContentProvider where the mixare app (core) has the ability to add/edit and delete datasources, and the plugins have the ability to only add datasources. This way, the users can create plugins where they can add datasources from the pluginside.
I would like to know what you think about this. And I would like to help you with this feature by building it in the fork(abduegal/mixare).
What version of the product are you using? On what operating system?
latest version, Android
Owner: abdu.e...@gmail.com
Labels: -Type-Defect Type-Enhancement Version-AndroidRelease0.8