Application gets killed "because provider is in dying process"

by GiladH » Thu, 09 Apr 2009 21:55:31 GMT

Sponsored Links

After long running the Media|Player (audio mode) the app I'm
developing often crashes w/
the following error:

Now this one is a real bummer because Android kills the media process
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


 (b) avoid my own app's killing after media process kill



Application gets killed "because provider is in dying process"

by GiladH » Mon, 13 Apr 2009 12:08:27 GMT

 Works like charm.
Tnx Di.


Sponsored Links

Other Threads

1. how to load application to G1 phone

After my phone has been upgraded to 1.5, I upgraded my application to
1.5. It could run correctly in simulator.

When I launched application in 1.0, it asked me to run in real device
or simulator. But in 1.5, my g1 phone is not listed at running android
device.What should I do?

2. Using me

I have a ListView with two types of custom views.  It inflates
"icon_row" view if  a drawable exists or a "text_row" if not.

I came up w/ custom views for icon_row & text_row & include them in
their XML like so :

<LinearLayout ....>

<LinearLayout ...>

I have another main.xml that defines the ListView which is set to an

In my adatper's getView (in separate class file), I will inflate:

    if(convertView == null) {
         if(<no drawable>) {
             convertView = mInflater.inflate(R.layout.text_row. null);
        }     else {
              convertView = mInflater.inflate(R.layout.icon_row,

Both of icon_row, text_row have a root LinearLayout that seem to be
redundant. The row layouts can be directly attached ListView.  This
may be a case for "merge".

To use merge, I need a ViewGroup in inflate & that ViewGroup should be
my ListView.

My question is how to obtain a reference to the ListView w/o making
the adapter as an inner class to the main activity.

Thanks in advance.

3. start and stop BOOT_COMPLETED in broadcast receiver

4. Permissions for Android Dev Phone 1

5. FW: BroadcastReceiver and Google Services Inquiry

6. strange behavior on rotating and scaling text

7. strange behavior on rotating and scaling text