[Sugar-devel] writing activities for all sugars
Fri Nov 21 16:48:35 EST 2008
The recently updated Map activity is tailored for the g1g1 xo.
Is there a way (and a guide) for how to write activities which can adapt
themselves for whichever hardware, emulator (jhbuild), distribution, build
number, and/or sugar os they are running on? It would be useful if activity
authors could query this information. The alternative seems to be bundling
activities for every variant.
For example, here are two bugs we've encountered in making a "write once,
run anywhere" sugar activity:
trac #1657 (scaling within an embedded browser component)
#keyHash = util.sha_data(key)
keyHash = util._sha_data(key)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Sugar-devel