ds0000254 / mixare

Automatically exported from code.google.com/p/mixare
0 stars 0 forks source link

Datasources are hard coded and stored on multiple places. #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by abdu...@gmail.com on 23 Mar 2012 at 9:42

GoogleCodeExporter commented 8 years ago

Original comment by abdu.e...@gmail.com on 23 Apr 2012 at 7:50