[sugar] Sharing data between activities.
Thu Aug 23 23:07:08 EDT 2007
On 8/23/07, Ivan Krsti? <krstic at solarsail.hcs.harvard.edu> wrote:
> On Aug 23, 2007, at 10:45 PM, Carlos Neves wrote:
> > What about if the activity, on first start, would feed the images
> > to the datastore (the ones not already there) and then delete them
> > from the activity installation folder? This would solve both the
> > image sharing, update syncing and space saving issues all at once,
> > while also making the images available to other activities such as
> > Paint and the like?
This sounds like something we want to support. We were discussing
today under what circumstances files and media libraries could
usefully be put into the datastore; and how to support explicit
sharing of 'published' materials in a way that can be programmatically
loaded into the current working environment
for other activities.
> This won't work. Your activity can't get things out of the datastore
> without user interaction. The datastore is meant as a store for
> _user_ documents.
Then perhaps there's a need for world-readable space that each
activity can control. Any activity that has network privileges can
access these kinds of readable spaces on other machines; it should be
able to access such spaces on its own machine as well.
More information about the Sugar-devel