[Sugar-devel] sugar-web - API for storing data

Daniel Narvaez dwnarvaez at gmail.com
Fri Aug 16 11:51:48 EDT 2013


But people might want to do more than writing onPause/onStop...


On 16 August 2013 17:39, Gonzalo Odiard <gonzalo at laptop.org> wrote:

> Ok, we agree.
>
> In the spirit o making the life of activity developers easier, should be
> good use onWrite only then.
>
> Gonzalo
>
>
> On Fri, Aug 16, 2013 at 12:28 PM, Daniel Narvaez <dwnarvaez at gmail.com>wrote:
>
>> On 16 August 2013 17:24, Gonzalo Odiard <gonzalo at laptop.org> wrote:
>>
>>>
>>>
>>> * I think onStart/onPause/onStop should be there in any case.
>>>> * On the top of those, your current onWrite implementation adds too
>>>> little to be justified.
>>>>
>>>>
>>> I can't see the difference between  onPause/onStop and onWrite, can you
>>> explain?
>>>
>>
>> Heh, that's my point! There is very little difference. onPause is called
>> when you switch to some other activity. onStop is called when the activity
>> is being closed. onWrite is called both by onPause and onStop.
>>
>
>


-- 
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130816/03649b4b/attachment.html>


More information about the Sugar-devel mailing list