My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 97: Datasources are hard coded and stored on multiple places.
3 people starred this issue and may be notified of changes. Back to list
 
Reported by abdu...@gmail.com, Mar 23, 2012
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

Apr 23, 2012
Project Member #1 abdu.e...@gmail.com
(No comment was entered for this change.)
Status: Fixed
Owner: abdu.e...@gmail.com
Labels: -Type-Defect Type-Enhancement Version-AndroidRelease0.8

Powered by Google Project Hosting