Would there be much work involved in updating the 2.x charts to support intents?
I'll outline the steps involved here to help myself later:
* I'll have to write a function similar to
getAxisTitles() that falls back to the ContentProvider only if data is not carried directly with the Intent
* I would have to develop a scheme for the Extras key names to signify what type of data is being carried (float, int, long, etc.) inside the Intent. Instead of a key name of simply
com.googlecode.chartdroid.intent.extra.DATA like I used
for the 1.x pie chart, the key names would probably have to look like
com.googlecode.chartdroid.intent.extra.DATA.FLOAT.AXIS_X
* ChartDroid would call getExtras().keySet() to find out which types and how many axes are used, and have switch cases that call getIntArrayExtra() or getFloatArrayExtra() based on the key names.
That said, it probably wouldn't hurt to learn ContentProviders for the time being. I've just added an
overview of their use to the wiki. You can also look at the
source to the market sales plotter project to get started. If you get hung up anywhere, I'd be happy to help.
Karl