[android-developers] Re: Application gets killed "because provider is in dying process"
Works like charm. Tnx Di. On Apr 9, 7:43 pm, Dianne Hackborn wrote: > You can avoid this by not holding an open cursor on the media content > provider. > > The onLowMemory() thing is not for this purpose. In fact this may not have > anything to do with memory at all -- if a process you have a cursor on > crashes for whatever reason, your process needs to be killed as well. > > > > On Thu, Apr 9, 2009 at 6:55 AM, GiladH wrote: > > > Hey, > > > After long running the Media|Player (audio mode) the app I'm > > developing often crashes w/ > > the following error: > > > > Process android.process.media (pid 14795) has died. > > > Killing because provider > > com.android.providers.media.MediaProvider is in dying process > > android.process.media > > > Now this one is a real bummer because Android kills the media process > > _without_ > > activating my own app's onLowMemory(), which would allow me to do some > > preemptive memory releasing. > > > Is there a way to either > > > (a) get a notification that media process (or any other process my ap > > depends upon for that matter) is about to be killed > > > -or- > > > (b) avoid my own app's killing after media process kill > > > TIA, > > GiladH > > -- > Dianne Hackborn > Android framework engineer > hack...@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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Application gets killed "because provider is in dying process"
You can avoid this by not holding an open cursor on the media content provider. The onLowMemory() thing is not for this purpose. In fact this may not have anything to do with memory at all -- if a process you have a cursor on crashes for whatever reason, your process needs to be killed as well. On Thu, Apr 9, 2009 at 6:55 AM, GiladH wrote: > > Hey, > > After long running the Media|Player (audio mode) the app I'm > developing often crashes w/ > the following error: > > > Process android.process.media (pid 14795) has died. > > Killing because provider > com.android.providers.media.MediaProvider is in dying process > android.process.media > > Now this one is a real bummer because Android kills the media process > _without_ > activating my own app's onLowMemory(), which would allow me to do some > preemptive memory releasing. > > > Is there a way to either > > (a) get a notification that media process (or any other process my ap > depends upon for that matter) is about to be killed > > -or- > > (b) avoid my own app's killing after media process kill > > > > TIA, > GiladH > > > > > > -- Dianne Hackborn Android framework engineer hack...@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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---