[Sugar-devel] writing activities for all sugars

Erik Blankinship erikb
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:

Bug one:
trac #1657 (scaling within an embedded browser component)

Bug two:
#joyride ...
#keyHash = util.sha_data(key)
#8.2...
keyHash = util._sha_data(key)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20081121/cbc89789/attachment-0001.html 



More information about the Sugar-devel mailing list