You shouldn't leave open transactions.  Generally the expectation is that
upon returning from an insert or whatever the corresponding transaction has
been committed.

On Wed, Jun 30, 2010 at 11:30 AM, Natanael Arndt <[email protected]> wrote:

> Thank you,
> but when should I or is than the best time to save database changes to the
> filesystem?
>
> Natanael
>
>
> On 30.06.2010 18:36, Dianne Hackborn wrote:
>
>> Content providers are never destroyed.  They exist for the entire
>> lifetime of their process.
>>
>> On Wed, Jun 30, 2010 at 2:19 AM, Natanael Arndt <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>    Hello,
>>    when writing a ContentProvider I have to implement the
>>    onCreate()-method, in which I establish my database connection.
>>    But to write the changes I made to the database I have to close the
>>    database on some point.
>>    Does something like a onDestroy()-method exist for ContentProviders
>>    or is there some intent I have to listen to, which is fired before
>>    killing my process?
>>
>>    Natanael
>>
>>    --
>>    You received this message because you are subscribed to the Google
>>    Groups "Android Developers" group.
>>    To post to this group, send email to
>>    [email protected]
>>    <mailto:[email protected]>
>>
>>    To unsubscribe from this group, send email to
>>    
>> [email protected]<android-developers%[email protected]>
>>    
>> <mailto:android-developers%[email protected]<android-developers%[email protected]>
>> >
>>
>>    For more options, visit this group at
>>    http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Dianne Hackborn
>> Android framework engineer
>> [email protected] <mailto:[email protected]>
>>
>>
>> Note: please don't send private questions to me, as I don't have time to
>> provide private support, and so won't reply to such e-mails.  All such
>> questions should be posted on public forums, where I and others can see
>> and answer them.
>>
>> --
>>
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<android-developers%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to