Natanael
On 30.06.2010 20:49, Dianne Hackborn wrote:
> 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 <NatanaelA@gmx.de
> <mailto:NatanaelA@gmx.de>> 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
> <NatanaelA@gmx.de <mailto:NatanaelA@gmx.de>
> <mailto:NatanaelA@gmx.de <mailto:NatanaelA@gmx.de>>> 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
> android-developers@googlegroups.com
> <mailto:android-developers@googlegroups.com>
> <mailto:android-developers@googlegroups.com
> <mailto:android-developers@googlegroups.com>>
>
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> <mailto:android-developers%2Bunsubscribe@googlegroups.com>
> <mailto:android-developers%2Bunsubscribe@googlegroups.com
> <mailto:android-developers%252Bunsubscribe@googlegroups.com>>
>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hackbod@android.com <mailto:hackbod@android.com>
> <mailto:hackbod@android.com <mailto:hackbod@android.com>>
>
>
> 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
> android-developers@googlegroups.com
> <mailto:android-developers@googlegroups.com>
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> <mailto:android-developers%2Bunsubscribe@googlegroups.com>
> 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
> android-developers@googlegroups.com
> <mailto:android-developers@googlegroups.com>
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> <mailto:android-developers%2Bunsubscribe@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hackbod@android.com <mailto:hackbod@android.com>
>
> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment